api/StorageAccessKey/GetBase64
This method returns storageAccessKey in the form of base64 picture. The picture is ready for scanning by a mobile application.
Parameters
| Name | Description | Type | Required |
|---|---|---|---|
| storageAccessKey | Key allowing an access to a mobile application user's storage. | string | True |
Responses
| Status | Description | |
|---|---|---|
| In response we get an image of a storageAccessKey coded in base64. | ||
| StorageAccessKey parameter is incorrect. | ||
| Internal server error |
Sample of using
using (WebClient client = new WebClient())
{
var url = "https://scanandpaste.com/api/StorageAccessKey/GetBase64?storageAccessKey=f676c533-b1f8-41dc-a060-0a2830150245";
string response = client.DownloadString(url);
Console.WriteLine(response);
}
import urllib2 url = 'https://scanandpaste.com/api/StorageAccessKey/GetBase64?storageAccessKey=f676c533-b1f8-41dc-a060-0a2830150245' response = urllib2.urlopen(url).read() print response
URL url = new URL("https://scanandpaste.com/api/StorageAccessKey/GetBase64?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();