curl -X DELETE http://api.drop.io/drops/YOUR_DROP_NAME/assets/YOUR_ASSET_NAME --data "api_key=YOUR_API_KEY&version=2.0" -G
--
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.
On Apr 8, 2:43 pm, Eric Skiff <e...@dropio.com> wrote:
> GET and POST are the most common HTTP methods and are generally used by
> browsers, but there are a number of other HTTP methods. in REST apis like
> ours, PUT and DELETE are often used to allow the full set of CRUD operations
> (create, read, update, delete) to be run against a single resource (url).
>
> For example, to use curl to delete an asset in a drop, you would call the
> URL with the DELETE HTTP method like so:
>
> curl -X DELETEhttp://api.drop.io/drops/YOUR_DROP_NAME/assets/YOUR_ASSET_NAME
> --data "api_key=YOUR_API_KEY&version=2.0" -G
>
> Here's a few handy links for more information
>
> http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods
>
> http://en.wikipedia.org/wiki/Representational_State_Transfer
>
> <http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods>
> -Eric
>
>
>
> On Thu, Apr 8, 2010 at 2:25 PM, mvidberg <markovidb...@gmail.com> wrote:
> > I notice that when looking through the API reference docs at
> >http://dev.drop.io/rest-api-reference/actions/there is a section
> > called "METHOD" and most have specifying it as "GET" or "POST", which
> > makes sense to me. Then there are others that are specified as "PUT"
> > and "DELETE". What exactly do those methods mean because in terms of
> > HTTP methods I only know of GET and POST.
>
> > --
> > 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