# File 'lib/ubidots/datasource_service.rb', line 5defself.retrieve(username)url="#{Ubidots::API_URL}/users/#{username}/datasources/"response=RestClient.geturl,{"X-UbidotsApiKey"=>@@key}JSON.parse(response.body).to_collection_with_findersend
.retrieve_without_username ⇒ Object
11
12
13
14
15
# File 'lib/ubidots/datasource_service.rb', line 11defself.retrieve_without_usernameurl="#{Ubidots::API_URL}/users/datasources/"response=RestClient.geturl,Ubidots::default_headersJSON.parse(response.body).to_collection_with_findersend