Creating a USPS Scan Form

Example

Here is an example:

<?php
$stamps = new \RocketShipIt\ScanForm('STAMPS');
$stamps->setParameter('imageType', 'Pdf');
$stamps->setParameter('shipDate', '2014-11-18');
$response = $stamps->create();

Example Response

Response:

stdClass Object
(
    [Authenticator] => exp=0416711449&uid=2731972&cty=swsim&ctk=wsu/m2kczYKJySH/wRsG5aeeruE=&iid=g9494blZRUuaUT+DAW/Ygw==&rsid=0&irsid=3&eac=0&eacx=0&eac3=0&rrsid=0&raid=0&resellerid=1&pexp=0&pl=&ast=1&ipaddr=99.170.255.117&ace=1416701641&mac=ly1AIrJavsQidtNp7BThi60iEV0=
    [ScanFormId] => 9475711201080899780461
    [Url] => https://swsim.stamps.com/Label/scanform.ashx/scanform-200.pdf?QQAAAFCr3FGK1dEIGaKcP1NHAzQQmgXC4ku3wzhUbx--RZW-pfr5RahuOi5-eRUA
)

Parameters

Value Description
shipDate When shipmentIdentification is not set all available labels not cancelled from specified ShipDate are included.
imageType Pdf - The only available option at this time
printInstructions If true instruction page is generated
shipmentIdentification Array of shipmentIDs to include on Scan Form – include if shipDate is not present