Scan&Paste logo
  • Home
  • API
  • How it works
  • Office Add-ins
  • Contact
  • Scan & Paste Business
Home > API > Get >

api/BundleManager/GetLast

This method returns detailed information of the last added bundle. The last added bundle is being downloaded basing on the storageAccessKey.

Parameters

Name Description Type Required
storageAccessKey A key allowing an access to the mobile application user’s storage. string True
top Limiting of the returned results. integer False
module Limiting the searching results to the bundles with filled modules. In the case of many modules we separate the names with a comma, e. g., module Photo,Video,Audo. string False
deviceID Limiting to the ID of the devices that bundles are from. In the case of many tools we separate them with a comma, e. g., device ID=d4b9b40a-fb31-4487-bb35-6213e657417e,f0c88e7d-5459-4624-a461-11820e36b82 string False
configurationID Limiting to the ID of configurations the bundles refer to. In the case of many IDs of configurations we separate them with a comma, e. g., configurationID=f373347b-652f-4d52-998a-888555471dfe,29ee48c4-e5db-4e39-889b-e901c7b6509e string False
formID Limiting to the ID of forms the bundles refer to. In the case of many IDs of forms we separate them with a comma, e.g.,ID=7daca124-cba8-4875-a96e-b01c1996b849,89d28902-f220-4746-af81-9361b0ec429d string False
userInfo Limiting to the users who introduced the bundles. In the case of many users we separate the names with a comma, e.g., userInfo=Mark,Andrew,Jacob string False
status Limiting to the status of a bundle. Possible statuses are: 100 – a bundle directed to proccessing, 110- a bundle with generated miniatures, 200- a bundle that has been fully proccessed, 300- a bundle proccessed incorectly. In the case of limiting to many statuses we separate them with a comma, e.g., status=100,200. Default value: status=200 string False
downloaded Limiting to the bundles that has already been downloaded. When the parameter is set on true it will return all the bundles, when set on false it will return all the bundles that has not been downloaded yet. string False
inputDateFrom Bottom limits on data of addig the bundle to the system.Time is in UTC, e.g., inputDateFrom=2016-08-04T06:30:43.353. string False
inputDateTo Top limits on data of adding the bundle to the system. Time is in UTC, e.g., inputDateFrom=2017-12-03T07:23:41.333. string False
bundleIDFrom Bottom limits on bundle ID. int False
bundleIDTo Top limits on bundle ID. int False

Responses

Status Description
The content of the bundle.
The bundle of the required parameters has not been found.
StorageAccessKey parameter is incorrect.
The provided storageAccessKey is not connected to any storage.
Lack of credits, bundle can not be downloaded.
Internal server error

Sample of using

using (WebClient client = new WebClient())
{
    var url = "https://scanandpaste.com/api/BundleManager/GetLast?storageAccessKey=f676c533-b1f8-41dc-a060-0a2830150245";
    string response = client.DownloadString(url);
    Console.WriteLine(response);
}
import urllib2

url = 'https://scanandpaste.com/api/BundleManager/GetLast?storageAccessKey=f676c533-b1f8-41dc-a060-0a2830150245'
response = urllib2.urlopen(url).read()
print response
URL url = new URL("https://scanandpaste.com/api/BundleManager/GetLast?storageAccessKey=f676c533-b1f8-41dc-a060-0a2830150245");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
BufferedReader br = new BufferedReader(new InputStreamReader(
        (conn.getInputStream())));
String output;
while ((output = br.readLine()) != null) {
    System.out.println(output);
}
conn.disconnect();

JSON Response

{
  "ID": 416,
  "StorageID": "f449571f-ad3c-4ded-a2e0-101aa3162b43",
  "ConfigurationID": "29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b",
  "FormID": "3efdcd59-9929-4cff-8927-05f189f4d443",
  "DeviceID": "353339060471054",
  "FormName": "NewOne",
  "Thumbnail": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2_0.thumb.jpg",
  "Description": null,
  "UserInfo": null,
  "GPS": "52°26'8\"N 16°54'44\"E",
  "UsedCredits": 0.021,
  "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/bundle.zip",
  "Modules": [
    {
      "ID": "dbfd7ccc-1b54-4795-9cf6-3454c895b51b",
      "Type": "PolicyOCR",
      "Label": "Policy OCR",
      "Values": [],
      "URLs": []
    },
    {
      "ID": "afb47c4a-2f21-4600-9338-32c808a635cc",
      "Type": "Aztec",
      "Label": "Aztec",
      "Values": [],
      "URLs": []
    },
    {
      "ID": "629be504-870b-4787-b242-40a88444cbaf",
      "Type": "InvoiceOCR",
      "Label": "Invoice OCR",
      "Values": [],
      "URLs": []
    },
    {
      "ID": "52bbddea-7287-4a53-8e52-28aee1db84f2",
      "Type": "Document",
      "Label": "Document",
      "Values": [],
      "URLs": [
        {
          "Thumbnail": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2_0.thumb.jpg",
          "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2_0.jpg",
          "Name": "Document.jpg",
          "Type": "Photo",
          "ExifOrientation": 1
        },
        {
          "Thumbnail": null,
          "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2.zip",
          "Name": "Document.zip",
          "Type": "Zip",
          "ExifOrientation": 0
        },
        {
          "Thumbnail": null,
          "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2.pdf",
          "Name": "Document.pdf",
          "Type": "Pdf",
          "ExifOrientation": 0
        },
        {
          "Thumbnail": null,
          "URL": "https://scanandpaste.blob.core.windows.net/bundles/353339060471054/f449571f-ad3c-4ded-a2e0-101aa3162b43/29d93c79-51b1-4bd0-b0d9-8fabe0b88c9b/416/52bbddea-7287-4a53-8e52-28aee1db84f2.pdf",
          "Name": "Document.pdf",
          "Type": "Document",
          "ExifOrientation": 0
        }
      ]
    },
    {
      "ID": "97eb6707-8f42-4dbe-8810-a2f475e89d2b",
      "Type": "Photo",
      "Label": "Photo",
      "Values": [],
      "URLs": []
    }
  ],
  "Status": 200,
  "InputDate": "2016-11-23T13:24:23.6166081Z"
};
Copyright 2025 Scan&Paste  |  License Agreement
Realization: Creandi.pl