Question about getting asset

0 views
Skip to first unread message

mvidberg

unread,
Apr 8, 2010, 9:00:52 AM4/8/10
to Drop.io API
I have a drop I created and added an asset to but now I am trying to
get its embed code but am only getting the following...
<response>
<action>show</action>
<result>Failure</result>
<message>The asset does not exist.</message> </response>

I am attempting to use the following...

http://api.drop.io/drops/:MY-DROP-NAME/assets/:MY-ASSET-NAME/embed_code?api_key=MY-API-KEY&admin_password=MY-PASSWD&version=2.0

I got the asset name via doing a call to list all assets on that
drop. Which parameter should use in place of MY-ASSET-NAME? Is it
not the "name" value that gets returned from doing an asset listing?

Eric Skiff

unread,
Apr 8, 2010, 9:09:49 AM4/8/10
to dropi...@googlegroups.com
Hi Marko, 
That call looks correct - the only thing to note is that in the actual call, you shouldn't include the ":" in front of the drop or asset name. 

If that's not the issue and/or you're still having trouble, mind pasting the actual URL call that you're trying to make, including the drop and asset name, without your API key, here so that I can take a look and see what's going on?

Thanks
-Eric
Drop.io


--
You received this message because you are subscribed to the Google Groups "Drop.io API" group.
To post to this group, send email to dropi...@googlegroups.com.
To unsubscribe from this group, send email to dropio-api+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dropio-api?hl=en.




--
Eric Skiff | er...@dropio.com |  917-284-8124 | http://twitter.com/ericskiff | http://nycresistor.com

drop.io: powers content sharing online

mvidberg

unread,
Apr 8, 2010, 10:49:25 AM4/8/10
to Drop.io API

Ok, great it worked to remove the ":" from the asset name. You might
want to change all your api doc pages
http://dev.drop.io/rest-api-reference/actions/get-an-asset/
which all clearly show the ":" character in front of both drop and
asset names. And also, accessing the drop with ":" in the name works
fine but doesn't work on assets. That is inconsistent as I think they
should both give an error if the ":" is not supposed to be there.


On Apr 8, 9:09 am, Eric Skiff <e...@dropio.com> wrote:
> Hi Marko,
> That call looks correct - the only thing to note is that in the actual call,
> you shouldn't include the ":" in front of the drop or asset name.
>
> If that's not the issue and/or you're still having trouble, mind pasting the
> actual URL call that you're trying to make, including the drop and asset
> name, without your API key, here so that I can take a look and see what's
> going on?
>
> Thanks
> -Eric
> Drop.io
>
>
>
> On Thu, Apr 8, 2010 at 9:00 AM, mvidberg <markovidb...@gmail.com> wrote:
> > I have a drop I created and added an asset to but now I am trying to
> > get its embed code but am only getting the following...
> > <response>
> > <action>show</action>
> > <result>Failure</result>
> > <message>The asset does not exist.</message> </response>
>
> > I am attempting to use the following...
>

> >http://api.drop.io/drops/:MY-DROP-NAME/assets/:MY-ASSET-NAME/embed_co...


>
> > I got the asset name via doing a call to list all assets on that
> > drop.   Which parameter should use in place of MY-ASSET-NAME?  Is it
> > not the "name" value that gets returned from doing an asset listing?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Drop.io API" group.
> > To post to this group, send email to dropi...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > dropio-api+...@googlegroups.com<dropio-api%2Bunsu...@googlegroups.com>


> > .
> > For more options, visit this group at
> >http://groups.google.com/group/dropio-api?hl=en.
>
> --

> Eric Skiff | e...@dropio.com |  917-284-8124 |http://twitter.com/ericskiff|http://nycresistor.com

mvidberg

unread,
Apr 8, 2010, 2:09:27 PM4/8/10
to Drop.io API
Should also mention that if you are using the ":" character to denote
a variable in the docs, maybe it would be better to use something more
standard such as curly braces? Maybe ":" is a common way to specify
variables but I am personally unfamiliar with it. Someone please
enlighten me.

On Apr 8, 10:49 am, mvidberg <markovidb...@gmail.com> wrote:
> Ok, great it worked to remove the ":" from the asset name.  You might

> want to change all your api doc pageshttp://dev.drop.io/rest-api-reference/actions/get-an-asset/

Jacob Robbins

unread,
Apr 8, 2010, 5:17:31 PM4/8/10
to dropi...@googlegroups.com
Marko,
The colon notation in urls is a convention we borrowed from ruby on
rails routing system. You are right in pointing out that we have not
documented our use of that convention in the API docs. We'll add a
section explaining conventions of our documentation to keep these
linguistic issues from effecting others. Glad you got everything
sorted out!
-Jacob
> To unsubscribe from this group, send email to dropio-api+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/dropio-api?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Drop.io API" group.
To post to this group, send email to dropi...@googlegroups.com.
To unsubscribe from this group, send email to dropio-api+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages