api/BundleManager/Get
This method returns detailed information about the bundle with the data necessary to review the contents. This method requires storageAccessKey and an ID of the bundle.
Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| id | Bundle ID | integer | True |
| storageAccessKey | A key allowing an access to the application user’s storage. | string | True |
Responses
| Status | Description | |
|---|---|---|
| The content of the bundle. | ||
| StorageAccessKey parameter is incorrect. | ||
| The provided storageAccessKey is not connected to any storage. | ||
| Lack of credits, no bundles can be downloaded. | ||
| A bundle of a given ID does not exist. | ||
| Internal server error |
Sample of using
using (WebClient client = new WebClient())
{
var url = "https://scanandpaste.com/api/BundleManager/Get?id=285&storageAccessKey=f676c533-b1f8-41dc-a060-0a2830150245";
string response = client.DownloadString(url);
Console.WriteLine(response);
}
import urllib2 url = 'https://scanandpaste.com/api/BundleManager/Get?id=285&storageAccessKey=f676c533-b1f8-41dc-a060-0a2830150245' response = urllib2.urlopen(url).read() print response
URL url = new URL("https://scanandpaste.com/api/BundleManager/Get?id=285&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();