Syntax
getPurchaseDownloads( $purchase_id )
Returns data about the current user (the owner of the API key).
Access rights
Read access or full access required.
Arguments
purchase_id = the order ID of the user. Separate multiple order IDs with commas.
Return data
The download files are broken down by order and product e.g.:
[downloads] => Array
(
[FF6CQRKV]
=> Array
(
[20]
=> Array
(
[0]
=> Array
(
[url]
=> https://www.digistore24.com/file/FF6CQRKV/L7HRFSY8/529
[downloads_total]
=> 5
[downloads_tries]
=> 0
[is_access_granted]
=> Y
[is_purchase_paid]
=> Y
[headline]
=>
[instructions]
=>
[file_name]
=> Instant Happiness.pdf
[file_ext]
=> pdf
[file_size]
=> 24092
[download_until]
=> 2016-05-17
)
[1]
=> Array
(
[url]
=> https://www.digistore24.com/file/FF6CQRKV/L7HRFSY8/528
[downloads_total]
=> 5
[downloads_tries]
=> 0
[is_access_granted]
=> Y
[is_purchase_paid]
=> Y
[headline]
=>
[instructions]
=>
[file_name]
=> Instant Happiness.mp4
[file_ext]
=> log
[file_size]
=> 332324
[download_until]
=> 2016-05-17
)
[2]
=> Array
(
[url]
=> https://www.digistore24.com/file/FF6CQRKV/L7HRFSY8/526
[downloads_total]
=> 5
[downloads_tries]
=> 0
[is_access_granted]
=> Y
[is_purchase_paid]
=> Y
[headline]
=>
[instructions]
=>
[file_name]
=> Instant Happiness - Teil 2.mp4
[file_ext]
=> png
[file_size]
=> 431635
[download_until]
=> 2016-05-17
)
)
)
)