rhomobile/rhomobile-docs

Doc Issue:Rhomobile | RhoConnect REST API

dhummel opened this issue · 0 comments

The Read State REST API is incorrect as displayed here in the docs. Alex and I have worked the issue and have a new syntax. Note that it is actually put instead of post and that readstate does not have an underscore.

RestClient.put(
"#/rc/v1/readstate/users/<user_id>/sources/<produce_id>",
{
:refresh_time => 100
}.to_json,
{:content_type => :json,
'X-RhoConnect-API-TOKEN' => @api_token}
)

http://docs.rhomobile.com/en/5.0.30/rhoconnect/rest-api#read-state-ndash-post-user-sourceid came from: http://docs.rhomobile.com/search?q=REST+API