api/BundleManager/GetByCAK
This method returns detailed information about the bundle with data needed for browsing the contents. This method requires configurationAccessKey, bundle’s origin configuration identification and ID of the bundle.
Parameters
Name | Description | Type | Required |
---|---|---|---|
id | Bundle ID | integer | True |
configurationID | Configuration ID | string | True |
configurationAccessKey | Configuration AccesKey allows an access to the bundles of a given configuration. | string | False |
Responses
Status | Description | |
---|---|---|
The content of the bundle. | ||
Parameters are incorrect. | ||
Configuration AccessKey does not exist. | ||
Lack of credtis, bundle can not be downloaded. | ||
Configuration AccesKey is blocked by an owner of the configuration. | ||
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/GetByCAK?id=247&configurationID=af7a6ac0-d58b-439e-b278-41729d3fe8ee&configurationAccessKey=292a22ed-b361-43cd-bacf-32ec69db186e"; string response = client.DownloadString(url); Console.WriteLine(response); }
import urllib2 url = 'https://scanandpaste.com/api/BundleManager/GetByCAK?id=247&configurationID=af7a6ac0-d58b-439e-b278-41729d3fe8ee&configurationAccessKey=292a22ed-b361-43cd-bacf-32ec69db186e' response = urllib2.urlopen(url).read() print response
URL url = new URL("https://scanandpaste.com/api/BundleManager/GetByCAK?id=247&configurationID=af7a6ac0-d58b-439e-b278-41729d3fe8ee&configurationAccessKey=292a22ed-b361-43cd-bacf-32ec69db186e"); 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();