Import an app's zip as your own draft (AS15 b1)
curl --request POST \
--url https://api.eddy.engineer/v1/apps.import \
--header 'Content-Type: application/zip' \
--data '<string>'import requests
url = "https://api.eddy.engineer/v1/apps.import"
payload = "<string>"
headers = {"Content-Type": "application/zip"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Content-Type': 'application/zip'}, body: '<string>'};
fetch('https://api.eddy.engineer/v1/apps.import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/apps.import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Content-Type: application/zip"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/apps.import"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/zip")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/apps.import")
.header("Content-Type", "application/zip")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/apps.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/zip'
request.body = "<string>"
response = http.request(request)
puts response.read_body{}Meta
Import an app's zip as your own draft (AS15 b1)
Takes the zip GET /v1/apps//download writes (<name>/app.json, <name>/files/<path>, <name>/export.json) and makes it the caller’s own private app draft, through POST /v1/apps’ own save (answers as it does, plus from: the export’s app, version and revision, and open). The reader is bounded before anything is inflated: at most 512 entries and 64 MiB declared uncompressed, relative names only (no .., absolute paths or drives), one top folder, stored or deflated entries with their CRCs checked; a blob file must hash to the blob the manifest names. A person only. 422 APP_IMPORT_BAD_ZIP / APP_IMPORT_BAD_NAME / APP_IMPORT_LAYOUT / APP_IMPORT_BLOB_MISMATCH / APP_IMPORT_TOO_LARGE; 413 over 64 MiB.
POST
/
v1
/
apps.import
Import an app's zip as your own draft (AS15 b1)
curl --request POST \
--url https://api.eddy.engineer/v1/apps.import \
--header 'Content-Type: application/zip' \
--data '<string>'import requests
url = "https://api.eddy.engineer/v1/apps.import"
payload = "<string>"
headers = {"Content-Type": "application/zip"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'Content-Type': 'application/zip'}, body: '<string>'};
fetch('https://api.eddy.engineer/v1/apps.import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/apps.import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Content-Type: application/zip"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/apps.import"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/zip")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/apps.import")
.header("Content-Type", "application/zip")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/apps.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/zip'
request.body = "<string>"
response = http.request(request)
puts response.read_body{}