Class: Renren2::Interface::Places
- Defined in:
- lib/renren2/interface/places.rb
Overview
Places Interface
Instance Method Summary collapse
Methods inherited from Base
#check_scope, #get, #initialize, #post, #request
Constructor Details
This class inherits a constructor from Renren2::Interface::Base
Instance Method Details
#create(poi_id, name, address, longitude, latitude, opts = {}) ⇒ Object
允许用户添加一个地点
30 31 32 33 34 35 36 |
# File 'lib/renren2/interface/places.rb', line 30 def create(poi_id, name, address, longitude, latitude, opts={}) post 'places.create', :body => {:poi_id => poi_id, :name => name, :address => address, :longitude => longitude, :latitude => latitude}.merge(opts) end |