Make a Request

You can make an API request using the programming language of your choice or use one of our SDK’s for convenience. Here are some request examples using a few popular web development languages.

Request URL

cURL
https://{API Key}:{Password}@api.atsanywhere.com/api/{API Endpoint}

URL Placeholders

URL Placeholders Description
{ API Key} API Key from “Account Details -> API” page.
{ Password } API Password from “Account Details -> API” page.
{ API Endpoint } This is a placeholder for the endpoint you want to make a request to.

Node.js

const https = require('https');
const api_key = '04b23c4a-934b-11e7-abc4-cec278b6b50a',
    api_pass = 'ff926a28-599b-4869-b620-a0b2ca905cfb',
    options = {
        hostname: '${api_key}:${api_pass}@api.atsanywhere.com/api/jobs'
        method: 'GET',
    };
https.request(options, (res) => {
    res.setEncoding('utf8');
    res.on('data', (chunk) => {
        console.log(`BODY: ${chunk}`);
    });
    res.on('end', () => {
        console.log('No more data in response.');
    });
});

Ruby

require 'net/http'

api_key = "04b23c4a-934b-11e7-abc4-cec278b6b50a"
api_pass = "ff926a28-599b-4869-b620-a0b2ca905cfb"
uri = "https://#{api_key}:#{api_pass}@api.atsanywhere.com/api/jobs"

Net::HTTP.get(uri)