Skip to content

Instantly share code, notes, and snippets.

@kzhangworks
Last active August 29, 2015 14:10
Show Gist options
  • Save kzhangworks/cd60836cfacfc78d5066 to your computer and use it in GitHub Desktop.
Save kzhangworks/cd60836cfacfc78d5066 to your computer and use it in GitHub Desktop.
PUT to /v1/admins/apps/android/certs set android keys
curl -X PUT -F 'android_gcm_sender_id=****' -F 'android_gcm_apikey=*******-kCwc' "http://api-local.cloud.appcelerator.com/v1/admins/apps/android/certs?key=xAP777Rw7uOSlOyRwW7F1BgqBJCsP9S9&pretty_json=true&_session_id=9mtn8gbx92eY7LpRzQ1iV2YZjGA"
{
"meta": {
"code": 200,
"status": "ok",
"method_name": "setAndroidPushCertificates"
},
"response": {
"apps": [
{
"id": "5475441edda0950356000004",
"name": "local",
"description": "test-3",
"friend_request_type": true,
"new_user_verification": false,
"allow_user_creation": true,
"secure_identity_server": false,
"android_certificates": {
"gcm_apikey": "*****-kCwc",
"gcm_sender_id": "*****"
},
"status": 0,
"created_at": "2014-11-26T03:08:14+0000",
"updated_at": "2014-11-26T03:34:29+0000",
"key": "xAP777Rw7uOSlOyRwW7F1BgqBJCsP9S9",
"oauth_key": "sMMOCW18LN609lmogF9MuAmXTrX9Sslk",
"oauth_secret": "49Lq6vROdJ0qpvYZswt7WOs8CzzBjYHo",
"group_id": "TCyysLL0VCTYbGthR5Gkodje5ZgXfm1v",
"type": 1
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment