Getting Started

​ ​Welcome

Blitline Job

Job Response

Job Options

Functions

Polling and Postbacks

Gotchas

Development Recommendations

Service Limits

Examples List

List of Available Functions

Output Options

S3 Destination

IAM Users

S3 Signed Url

Azure Destination

FTP Destination

Other Service Signed Urls

CDN

Advanced

Metadata

Colorspace

Color Extraction

Static IPs

Signed Jobs

Formats

Pipelines

Image Optimization

Smart Image

PDF

Fonts

Subimage

Special (Non-Image) Processing

AWS Rekognition/Facial Recognition

Apache Tika

Vector Processing

Animated GIFs

Screenshots of Websites

IM Scripts

Video Keyframes

Zipping

​ ​Trancoding Video Presets

​ ​Video Transcoding

Job Response

Updated a month ago ​by Blitline Support

RESPONSE

When you submit a job to Blitline you will get a JSON response. If successful the response code will be 200 and you will receive json back, indicating that the job has been accepted, a job_id, and a final destination url of the “soon to be outputted” jobs

The response does not indicate the the job has completed, just that it has been put into the queue to be completed soon (typically milliseconds).

The JSON response will look like this:

{
    "results": {
        "images": [
            {
                "image_identifier": "MY_CLIENT_ID",
                "s3_url": "http://s3.amazonaws.com/blitline/2014061104/20/2egVo2JecVsg6LN4azi3GsA.jpg"
            }
        ],
        "job_id": "6eN7w77aj9DGnu6KG6qv2bA"
    }
}

It will have a root key of results

This in turn will contain a job_id and array of images nodes. 

These images nodes will each contain an s3_url indicating where the image will be outputted to, and an image_identifier which will indicate which output file we are talking about.

ERROR RESPONSE

In the event there was an error upon submission, there will be a 4xx or 500 response code and the response JSON will look like this:

{
    "results": {
        "error": "Your application ID is required to process any job. Check your Blitline account page for your application ID"
    }
}

It will have a root key of results.

This in turn will contain an error with a description of the error along with a suggestion for fixing (if available).




How did we do?