Hello Kirsten,can you point me to sample code for NETSTOARGE API ??WIth Perl and/or python code?
We currently do not have sample code for NetStorage in either Perl, or Python, however we do have a PHP library that may work for demonstration purposes.
You can find the library on Github, here: akamai-open/netstorage-php · GitHub
An example of a file upload looks something like this:
// Upload a file:
// Request signature is added transparently
// All parent directories must exist (e.g. /path/to)
$client->put('/' . $cpCode . '/path/to/file', [
'headers' => [
'X-Akamai-ACS-Action' => 'version=1&upload&sha1=' .sha1($fileContents)
'body' => $fileContents
Files are uploaded using PUT. We set the X-Akamai-ACS-Action to include the upload flag, and the sha1 hash of the file content; and the place the file contents as the body of the PUT request.
This does not include the request signing however, as it's abstracted away by the client. You can see the implementation of the signing here: netstorage-php/Authentication.php at master · akamai-open/netstorage-php · GitHub
Let me know if this helps at all, and if you have any further questions.
Retrieving data ...