Upload Application Package
Upload an APK or .ipa file to webmate to install on devices later on.
Using the webmate API this is not possible by only using a single API endpoint. First you have to upload the package contents as a blob:
| Endpoint | /projects/{project_id}/blobs |
| Method | POST |
| project_id | ID of the project to create the blob for |
| Content-Type Header | “application/vnd.android.package-archive” for APK files and “application/x-ios-app” for IPA files |
| POST body | binary data of the package file |
| return schema | UUID string |
| return example | e46faf23-48af-4c0f-829f-230069c9b527 |
You can use this endpoint the following way:
Now you can use the created blob and its ID to create the package:
| Endpoint | /projects/{project_id}/packages |
| Method | POST |
| project_id | ID of the project to create the package for |
| POST body | {"blobId": "e46faf23-48af-4c0f-829f-230069c9b527", "name": "string", "extension": "apk/ipa", "metadata": {}} |
| return schema | JSON with package properties |
| return example | {"id": "ed4c3bc8-de10-4ee6-a81c-b8b83e83a1af", "projectId": "313c43bf-b250-408d-ac48-425b2ec80eb2"} |
| |
You can now see and modify the app via the web interface as well.
Here is a shell script to combine those steps where you just have to insert the according variables at the top or execute it as script and provide the values as parameters:
| |
Upload an App via API
You need an authenticated webmateSession to call this function, see this article
on how to set up and authenticate with the SDK.
You need to fetch the APK/.ipa file to install as a byte array. The files have to be located under resources/packagename/.
| |
You need to fetch the path for the APK/.ipa file to install.
| |
Now you can upload the app, you can specify a name, and whether it is an Android package (APK), or an iOS package (.ipa file).
| |
| |
You can now see and modify the app via the web app as well.
Upload an App via API
You need an authenticated webmateSession to call this function, see this article
on how to set up and authenticate with the SDK.
You need to fetch the APK/.ipa file to install as a byte array. The files have to be located under resources/packagename/.
| |
You need to fetch the path for the APK/.ipa file to install.
| |
Now you can upload the app, you can specify a name, and whether it is an Android package (APK), or an iOS package (.ipa file).
| |
| |
You can now see and modify the app via the web app as well.