Created
November 26, 2014 07:18
-
-
Save kzhangworks/52a580d27a21e7e2abfa to your computer and use it in GitHub Desktop.
PUT to /v1/admins/apps/emails/setting to set MessageGears for app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -b cookies.txt -c cookies.txt -X PUT -F "apikey=***" -F "accountid=***" -F '[email protected]' -F 'sender_name=support team' -F 'provider=message_gears' -F 'endpoint=https://api.messagegears.net/3.1/WebService' "http://api-local.cloud.appcelerator.com/v1/admins/apps/emails/setting?key=xAP777Rw7uOSlOyRwW7F1BgqBJCsP9S9&pretty_json=true" | |
{ | |
"meta": { | |
"code": 200, | |
"status": "ok", | |
"method_name": "setAppEmailSettings" | |
}, | |
"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, | |
"email_settings": { | |
"dev_mode": false, | |
"replacement_email": "", | |
"settings": { | |
"accountid": "****", | |
"key": "***", | |
"sender": "[email protected]", | |
"sender_name": "support team", | |
"endpoint": "https://api.messagegears.net/3.1/WebService" | |
} | |
}, | |
"email_provider": "message_gears", | |
"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