Getting started Authorization

The Probo Reseller API uses a basic authentication token. The token is passed as a header parameter. Below is are various examples to fetch product information for Re-board. You should replace {{token}} with your token. You can retrieve a token via the platform.

HTTP Example

GET /products/product/re-board HTTP/1.1
Host: api.proboprints.com
Authorization: Basic {{token}}

     

VanillaJS Fetch Example

var myHeaders = new Headers();
myHeaders.append("Authorization", "Basic {{token}}");
var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};
fetch("https://api.proboprints.com/products/product/re-board", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

     

PHP Curl example

<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.proboprints.com/products/product/re-board',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Basic {{token}}'
  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

     

Laravel Example

use Illuminate\Support\Facades\Http;
$response = Http::withHeaders([
    'Authorization' => 'Basic '.config('probo.token'),
])->get('https://api.proboprints.com/products/product/re-board');
echo $response->body();