Last active
August 29, 2015 14:12
-
-
Save mkorostoff/6caff345af3cdd9e7229 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
POST /v7.0/workout/ HTTP/1.0 | |
Api-Key: qvrhd9ep4hhbm66tsasjr9bcuv85ewhc | |
Authorization: Bearer 4e31f69206ec927f811bffbd21d23cf85f373fa7 | |
Content-Type: application/json | |
User-Agent: Drupal (+http://drupal.org/) | |
Connection: close | |
Host: oauth2-api.mapmyapi.com | |
Content-Length: 298 | |
{ | |
"start_datetime": "2014-12-23T17:24:48", | |
"name": "Heavy Kettle: Basics", | |
"privacy": "\/v7.0\/privacy_option\/1\/", | |
"aggregates": { | |
"active_time_total": 1593, | |
"elapsed_time_total": 1593, | |
"metabolic_energy_total": 757304 | |
}, | |
"start_locale_timezone": "America\/New_York", | |
"activity_type": "\/v7.0\/activity_type\/12\/" | |
} |
This file contains hidden or 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
HTTP/1.1 400 Bad Request | |
Content-Type: application/json | |
Date: Tue, 23 Dec 2014 17:24:48 GMT | |
Server: nginx | |
X-Mashery-Responder: prod-j-worker-us-east-1e-58.mashery.com | |
X-Plan-QPS-Allotted: 60 | |
X-Plan-QPS-Current: 1 | |
X-Plan-Quota-Allotted: 25000 | |
X-Plan-Quota-Current: 46 | |
X-Plan-Quota-Reset: Wednesday, December 24, 2014 12:00:00 AM GMT | |
Content-Length: 236 | |
Connection: Close | |
{ | |
"_diagnostics": { | |
"validation_failures": [{ | |
"start_datetime": "start_datetime cannot be naive" | |
}] | |
}, | |
"_links": { | |
"self": [{ | |
"href": "\/v7.0\/workout\/?limit=20&offset=0" | |
}], | |
"documentation": [{ | |
"href": "https:\/\/www.mapmyapi.com\/docs\/v70_Workout" | |
}] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment