I've been using the public API to create a shopping basket and I now
wish to redirect to the 7digital website with that basket. basket/
checkout is a commerical API method, so how do I redirect from my
website to 7digital with my basket, please?
Thanks,
Jamie
This is an error in our documentation.
This feature not available in the public API, and is available with
the premium API.
We'll update documentation soon.
Apologies for misleading you.
Hibri
7Digital
again sorry for the misleading documentation.
The basket methods were part of the Public API documentation because
access to them is not restricted and in the future we plan on adding
the functionality that will allow you to checkout a pre-populated
basket via the 7digital.com site.
At the moment though you can use the Public API to send your users to
7digital.com for purchases of single tracks or albums. You just need
to forward them to the <url> links that are being returned in the API
responses - e.g. <url>http://www.7digital.com/artists/skywalker-(1)/
bar-itaca-ibiza/?partner=XXX</url> . They will have automatically
attached your partner id which will ensure that any purchases the user
makes on 7digital.com (in that session) are tracked as coming from
your application/website.
There's also a little trick - if you add addtobasket=true to a release
or track url (e.g.
http://www.7digital.com/artists/skywalker-(1)/bar-itaca-ibiza/01-Dreams-and-Byte/?partner=XXX&addtobasket=true
) the item on the page will be automatically added to user's basket
when they land on the page. But please note that this trick is not
part of the official API and might stop working in the future.
Hope this helps
Filip
7digital
Just one consideration... maybe it's a bug or an expected behavior:
If I put "country=ES" in the query string, the URLs I get don't have
my partner=XXXX code. If I don't put anything or if I put
"country=GB", they DO contain my partner ID.
On Jan 13, 7:45 pm, "fi...@7digital.com" <filip.den...@7digital.com>
wrote:
> Hi Jamie,
>
> again sorry for the misleading documentation.
> The basket methods were part of the Public API documentation because
> access to them is not restricted and in the future we plan on adding
> the functionality that will allow you to checkout a pre-populated
> basket via the 7digital.com site.
>
> At the moment though you can use the Public API to send your users to
> 7digital.com for purchases of single tracks or albums. You just need
> to forward them to the <url> links that are being returned in the API
> responses - e.g. <url>http://www.7digital.com/artists/skywalker-(1)/
> bar-itaca-ibiza/?partner=XXX</url> . They will have automatically
> attached your partner id which will ensure that any purchases the user
> makes on 7digital.com (in that session) are tracked as coming from
> your application/website.
>
> There's also a little trick - if you add addtobasket=true to a release
> or track url (e.g.http://www.7digital.com/artists/skywalker-(1)/bar-itaca-ibiza/01-Drea...
