Last active
August 29, 2015 13:56
-
-
Save bobsilverberg/8961966 to your computer and use it in GitHub Desktop.
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
Step 1: Validate a manifest: | |
Starting new HTTPS connection (1): marketplace-dev.allizom.org | |
"POST /api/apps/validation/ HTTP/1.1" 201 None | |
{ | |
"headers": { | |
"Content-type": "application/json", | |
"Authorization": "OAuth realm=\"\", oauth_body_hash=\"\", oauth_nonce=\"\", oauth_timestamp=\"1392230414\", oauth_consumer_key=\"\", oauth_signature_method=\"HMAC-SHA1\", oauth_version=\"1.0\", oauth_signature=\"%%3D\"" | |
}, | |
"data": "{\"manifest\": \"http://1392230414.testmanifest.com/manifest.webapp\"}" | |
}, | |
Step 2: Check validation id | |
Starting new HTTPS connection (1): marketplace-dev.allizom.org | |
"GET /api/apps/validation/c8f389c329be4c5ca6eb0d9a3f3613db/ HTTP/1.1" 200 None | |
{ | |
"headers": { | |
"Content-type": "application/json", | |
"Authorization": "OAuth realm=\"\", oauth_body_hash=\"%%2FYBwk%3D\", oauth_nonce=\"\", oauth_timestamp=\"1392230415\", oauth_consumer_key=\"mkt%%.%.%3A0\", oauth_signature_method=\"HMAC-SHA1\", oauth_version=\"1.0\", oauth_signature=\"%3D\"" | |
}, | |
"data": null | |
}, | |
Step 3: Create an app | |
Starting new HTTPS connection (1): marketplace-dev.allizom.org | |
"POST /api/apps/app/ HTTP/1.1" 201 None | |
{ | |
"headers": { | |
"Content-type": "application/json", | |
"Authorization": "OAuth realm=\"\", oauth_body_hash=\"%%%3D\", oauth_nonce=\"\", oauth_timestamp=\"1392230416\", oauth_consumer_key=\"mkt%%.%.com%3A0\", oauth_signature_method=\"HMAC-SHA1\", oauth_version=\"1.0\", oauth_signature=\"%%3D\"" | |
}, | |
"data": "{\"manifest\": \"c8f389c329be4c5ca6eb0d9a3f3613db\"}" | |
}, | |
Step 4: Get available categories | |
Starting new HTTPS connection (1): marketplace-dev.allizom.org | |
"GET /api/apps/category/ HTTP/1.1" 200 None | |
{ | |
"headers": { | |
"Content-type": "application/json", | |
"Authorization": "OAuth realm=\"\", oauth_body_hash=\"%%%3D\", oauth_nonce=\"\", oauth_timestamp=\"1392230417\", oauth_consumer_key=\"mkt%%.%.com%3A0\", oauth_signature_method=\"HMAC-SHA1\", oauth_version=\"1.0\", oauth_signature=\"vlO4%%%3D\"" | |
}, | |
"data": null | |
}, | |
Step 5: Update the app | |
Starting new HTTPS connection (1): marketplace-dev.allizom.org | |
"PUT /api/apps/app/483249/ HTTP/1.1" 400 None[ | |
{ | |
"headers": { | |
"Content-type": "application/json", | |
"Authorization": "OAuth realm=\"\", oauth_body_hash=\"%%%3D\", oauth_nonce=\"\", oauth_timestamp=\"1392230418\", oauth_consumer_key=\"mkt%%.%.com%3A0\", oauth_signature_method=\"HMAC-SHA1\", oauth_version=\"1.0\", oauth_signature=\"%%3D\"" | |
}, | |
"data": "{\"privacy_policy\": \"privacy policy of testapp 1392230414\", \"description\": \"more details of marble app 1392230414\", \"premium_type\": \"free\", \"categories\": [155, 156], \"name\": \"API Mock Application 1392230414\", \"support_url\": \"http://test1392230414.com/\", \"summary\": \"Summary of marble app 1392230414\", \"device_types\": [\"firefoxos\"], \"payment_type\": \"free\", \"homepage\": \"http://test1392230414.com/\", \"support_email\": \"test1392230414@testemail.com\"}" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment