Sample code
The Appetize.io API is designed to be user friendly. Please see a few example API calls below.

Create new app

Curl
Node.js
1
curl --http1.1 https://[email protected]/v1/apps \
2
-H 'Content-Type: application/json' \
3
-d '{"url":"FILE URL", "platform": "ios"}'
Copied!
1
// use the 'request' module from npm
2
var request = require('request');
3
request.post({
4
url: 'https://[email protected]/v1/apps',
5
json: {
6
url: 'FILE URL',
7
platform: 'ios'
8
}
9
}, function(err, response, body) {
10
if (err) {
11
// connection error
12
console.log('Error', err);
13
} else if (response.statusCode !== 200) {
14
// API returned error
15
console.log('API error', body);
16
} else {
17
// success
18
console.log(body);
19
}
20
});
Copied!
Any questions at all? Please email us at [email protected].
Last modified 1yr ago
Copy link