Skip to content

Instantly share code, notes, and snippets.

@bertspaan
Created October 15, 2013 19:45
Show Gist options
  • Save bertspaan/6997514 to your computer and use it in GitHub Desktop.
Save bertspaan/6997514 to your computer and use it in GitHub Desktop.
CitySDK: Ruby script to add data to node `pc.nlp4.3514`
require 'citysdk'
$email = ARGV[1]
$password = ARGV[2]
@api = CitySDK::API.new("api.citysdk.waag.org")
@api.authenticate(email, passw)
data = {
data: {
poi: "2coolmonkeys HQ"
}
}
@api.put("pc.nlp4.3514/2cm.koopsom", data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment