shared_to

9 views
Skip to first unread message

yakura

unread,
Nov 16, 2009, 4:43:39 AM11/16/09
to SoundCloudAPI
Hello,

I can upload files to Soundcloud, but I would like to use the
shared_to function. When I create the song, I add to the request a
parameter like this:

track[shared_to][emails][email][][address]=a.u...@example.com

So when I make the request, I get a 500 error (internal server error).
The code is the same that appears on the api web, so I don´t know whta
is wrong. If I don´t use the parameter above, everything is ok and the
song is uploaded. I have tried editing uploaded songs and the problem
is the same: I get error 500.

Does anybody knows what would be the problem?

Thanks

Hannes Tydén

unread,
Nov 17, 2009, 1:04:23 AM11/17/09
to soundc...@googlegroups.com
Hi Yakura

The documentation was wrong the parameter name=value should be:
track[shared_to][emails][][address]=a.u...@example.com

The documentation has been updated accordingly.

Thank you for making us aware of this and we're sorry for the
confusion and extra work this created.

Cheers,
Hannes

--
Hannes Tydén
Developer, SoundCloud

Mail: han...@soundcloud.com
Skype: hannestyden
Phone: +49 157 7471 6101
Rosenthalerstr. 13
10119 Berlin, DE

What is SoundCloud?
http://soundcloud.com/tour

yakura y

unread,
Nov 17, 2009, 2:58:26 AM11/17/09
to soundc...@googlegroups.com
Hello Hannes,

Now I can share tracks, but I have a question: How can I add more than one email? I have tried passing the mails separated by comma:

track[shared_to][emails][][address]=a...@b.com, b...@c.com
 
But it does not work.

Thanks

2009/11/17 Hannes Tydén <han...@soundcloud.com>

Hannes Tydén

unread,
Nov 17, 2009, 5:14:52 AM11/17/09
to soundc...@googlegroups.com
On Tue, Nov 17, 2009 at 8:58 AM, yakura y <yakur...@gmail.com> wrote:
> Now I can share tracks, but I have a question: How can I add more than one
> email?

You can pass the paramater name several times, with different values.

track[shared_to][emails][][address]=a...@b.com
track[shared_to][emails][][address]=b...@c.com

In a url this would look like
http://example.org/path?track[shared_to][emails][][address]=a...@b.com&track[shared_to][emails][][address]=b...@c.com

Reply all
Reply to author
Forward
0 new messages