PHP Library

0 views
Skip to first unread message

David B

unread,
Oct 24, 2008, 5:45:34 PM10/24/08
to Drop.io API
Took a few hours last night and whipped up a php library. It doesn't
include all the API calls, just the basic ones I used to test as proof
of concept. It has not been tested at all so I wouldn't use it for
anything that is in use, since the code will change, I guarantee it.
But it is a first step and I will try to finalize it in the next few
days.

Here is an example of it running
http://code.slawcup.com/drop.io/api/php/test.php
Isn't it magical? Create / Get / Update a drop then Create Assets and
Get a list of them.

Here is the code. Any and all constructive feedback is appreciated.
http://code.slawcup.com/drop.io/api/php/drop_io_api.phps

--David

///////////////////////

$c=new DROPIO_CreateDrop();
$c->expiration_length='1_DAY_FROM_NOW';
$drop=$c->send();

print_r($drop);

$a=new DROPIO_CreateAsset_Note();
$a->drop_name=$drop->name;
$a->contents='this is my content! what do you think?';
$asset=$a->send();

print_r($asset);

Jake Good

unread,
Oct 24, 2008, 6:09:12 PM10/24/08
to David B, Drop.io API
This is absolutely fantastic!!

Soon enough we can start collecting all of the great work around the
API and showcase it...

Jake Good
Platform Evangelist
http://api.drop.io

Reply all
Reply to author
Forward
0 new messages