 <p>I have found link which can help you to talking api</p> <p><a href="https://github.com/xively/xively-rb/wiki/Talking-to-the-REST-API" rel="nofollow">https://github.com/xively/xively-rb/wiki/Talking-to-the-REST-API</a></p> <p>you can use</p> <pre><code>client = Xively::Client.new(YOUR_API_KEY) response = client.post('/v2/feeds.json', :body =&gt; feed.to_json) puts response.headers['location'] # Will give us the location of the Xively feed including the ID =&gt; "http://api.xively.com/v2/feeds/SOMEID" </code></pre> <p>Create a Datapoint</p> <p>The datapoint creation endpoint takes an array of datapoints</p> <pre><code> datapoint = Xively::Datapoint.new(:at =&gt; Time.now, :value =&gt; "25") client.post('/v2/feeds/504/datastreams/temperature/datapoints', :body =&gt; {:datapoints =&gt; [datapoint]}.to_json) </code></pre>