Skip to content

Instantly share code, notes, and snippets.

@kzhangworks
Created November 26, 2014 07:13
Show Gist options
  • Save kzhangworks/771106e7d70e37828cda to your computer and use it in GitHub Desktop.
Save kzhangworks/771106e7d70e37828cda to your computer and use it in GitHub Desktop.
PUT to /v1/admins/apps/emails/smtp set smtp for app
curl -b cookies.txt -c cookies.txt -X PUT -F "address=smtp.gmail.com" -F "tls=true" -F "username=****" -F "password=*****" -F "port=587" -F "use_sender=false" "http://api-local.cloud.appcelerator.com/v1/admins/apps/emails/smtp?key=xAP777Rw7uOSlOyRwW7F1BgqBJCsP9S9&pretty_json=true&pretty_json=true"
{
"meta": {
"code": 200,
"status": "ok",
"method_name": "setSMTP"
},
"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,
"smtp_server": {
"dev_mode": false,
"replacement_email": "",
"settings": {
"address": "smtp.gmail.com",
"user_name": "****m",
"password": "****",
"enable_starttls_auto": true,
"port": "587",
"use_sender": false,
"sender": ""
}
},
"email_settings": {
"dev_mode": false,
"replacement_email": "",
"settings": {
"address": "smtp.gmail.com",
"user_name": "****",
"password": "****",
"enable_starttls_auto": true,
"port": "587",
"use_sender": false,
"sender": ""
}
},
"email_provider": "smtp",
"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