Drag and Drop iOS and Android App Distribution

Mac App

RubyGem

Installation

$ gem install appsendr

Command line Usage

$ appsendr create ~/Path/to/app.ipa com.yourapp.identifier ~/Path/to/icon.png

Ruby Usage

# Create
app = Appsendr::App.create IPA/APK File, Icon File (Optional), Bundle Identifier
id = app["id"]
token = app["token"]

# Destroy
if Appsendr::App.destroy(id, token)
  puts "App was successfully destroyed"
end
Create App
POST /v1/app/new
Creates an app and returns an install link
Delete App
DELETE /v1/app/:id
Delete an app
App Details
GET /v1/app/:id
Returns details of an app

Create App

POST /v1/app/new

Parameters

app_data
Required
Binary data for your .ipa or .apk file
identifier
Required for .ipa files
The bundle identifier from your app Info.plist
icon
Optional
Binary data for your PNG Icon

Example Request

$ curl -i "https://api.appsendr.com/v1/app/new" -X POST \
 -F "identifier=com.example.sample" \
 -F "app_data=@YOUR_APP.ipa" \
 -F "icon=@icon.png"

Example Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "created_at": "2012-10-06T21:52:08-07:00",
  "filename": "YOUR_APP.ipa",
  "id": "abcdef",
  "token": "c922d7b0-2bda-4e3a-bdf4-58d5909a54c9",
  "url": "https://ota.io/abcdef"
}

Example Error

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8

{
  "error": {
    "message": "No app file provided"
  }
}

Delete App

DELETE /v1/app/:id/:token

Parameters

id
Required
ID of app
token
Required
Token is sent with the response when creating an app

Example Request

$ curl -i "https://api.appsendr.com/v1/app/abcdef" -X DELETE

Example Response

HTTP/1.1 204 No Content

Example Error

HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8

{
  "error": {
    "message": "id not found"
  }
}

Get App

GET /v1/app/:id

Parameters

id
Required
ID of app

Example Request

$ curl -i "https://api.appsendr.com/v1/app/abcdef" -X GET

Example Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "created_at": "2012-10-06T21:52:08-07:00",
  "filename": "YOUR_APP.ipa",
  "id": "abcdef",
  "url": "http://ota.io/abcdef"
}

Example Error

HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8

{
  "error": {
    "message": "id not found"
  }
}


Legacy Web App

If you are a user of the legacy AppSendr Web App, you can continue to use the app, however new signups have been discontinued.