Printing the Class Information?

4 views
Skip to first unread message

Kyle Brady

unread,
Oct 24, 2007, 3:06:09 PM10/24/07
to DivShare API Developers
For some reason, the class information keeps being printed onto the
page...

I'm using the PHP4 Client Library to do this. Not printing any of the
divshare_lib processes in the page.

This code:
$ds = new divshare_api('1[key]','[secret]');
$api_session_key = $ds->login('[email]', '[password]');
$ticketer = $ds->get_upload_ticket();
$ticket = $ticketer['response']['upload_ticket'];
$ds->logout();

Prints out:

method=login&api_key=[key]&user_email=[email]&user_password=[password]
method=get_upload_ticket&api_key=[key]&api_session_key=828-40e91311365f&api_sig=358315e742064806ecccbca52553d574
method=logout&api_key=[key]

-------------
I'm using this to upload a video via a form, and then spit out some
embed data and things. All of this works. It just, for some reason,
keeps printing what I showed above for no reason that I can find.

Any help is appreciated.

Thanks
--Kyle

Kyle Brady

unread,
Oct 24, 2007, 3:34:34 PM10/24/07
to DivShare API Developers
Note: the $ds = new divshare_api('1[key]','[secret]'); line above is
actually a typo on here, occurred when i removed the actual key.

Gregory Stewart

unread,
Oct 25, 2007, 12:47:31 AM10/25/07
to DivShare API Developers
In the client library comment out this line (114):

echo $post_string . '<p>';

that will get rid of the messages.

Greg

Kyle Brady

unread,
Oct 25, 2007, 12:52:20 AM10/25/07
to DivShare API Developers
Wow, really? I'll have to give it a try... but why would that be
included? It doesn't make much sense for it to print the sensitive
data...

Thanks
--Kyle

Rob Howard, DivShare

unread,
Oct 25, 2007, 7:54:55 AM10/25/07
to DivShare API Developers
Guys, thanks for pointing that out and providing the fix -- we were
using that for debug and accidentally left it uncommented, but we'll
update the ZIP on the site now.

Rob

Reply all
Reply to author
Forward
0 new messages