WhatPulse Forums
Some problems with Web API - Printable Version

+- WhatPulse Forums (http://whatpulse.org/forums)
+-- Forum: Support (/forumdisplay.php?fid=38)
+--- Forum: Website (/forumdisplay.php?fid=60)
+--- Thread: Some problems with Web API (/showthread.php?tid=2168)



Some problems with Web API - Runis - 12-30-2012 11:14 AM

There are problems in users.php, where user names with special characters or users named only with numbers always get an error, that user is Unknown.

For example:
http://api.whatpulse.org/user.php?user=47
http://api.whatpulse.org/user.php?user=[#WP]DjRedmar

PHP Code:
<WhatPulse>
<
error>Unknown UserID given!</error>
</
WhatPulse



RE: Some problems with Web API - smitmartijn - 12-30-2012 12:18 PM

First one is fixed, but the second one can't really be fixed. The script only sees the '[' part because of the anchor (#). You'll need to supply either the userid or switch to a post method.