You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
The xively-rb library makes it easy to convert Ruby objects into Xively ones.
feed=Xively::Feed.new# initialize a new Feed objectfeed.title="My Xively Feed"feed.datastreams=[Xively::Datastream.new(:id=>'test')]# Let's give it one datastream with id 'test'
Let's create the feed on Xively
client=Xively::Client.new(YOUR_API_KEY)response=client.post('/v2/feeds.json',:body=>feed.to_json)putsresponse.headers['location']# Will give us the location of the Xively feed including the ID=>"http://api.xively.com/v2/feeds/SOMEID"