jdolitsky / AppDotNetPHP

PHP library for the App.net Stream API
34 stars 19 forks source link

404 on unfollowUser ? #3

Closed ghost closed 12 years ago

ghost commented 12 years ago

Follow seems to be working but unfollowUser is throwing 404 errors most of the time.. but sometimes I think it gets though. The url and user id(s) look ok.

jdolitsky commented 12 years ago

@hxf148 delete requests were not working correctly. Try an unfollow again w/ latest code and let me know what happens, it should work now. I need some help re-writing the 'httpDelete' function to use the curl extension if anyone could help out

jdolitsky commented 12 years ago

it's not returning json because i'm using exec('curl ...') instead of the curl extension. this could be a problem for users if exec() is disabled in php.ini

ghost commented 12 years ago

Ok thank you very much, will be trying this right away and will let you know. I have a small request as well, I keep hacking this in... can you set it up so you can pass counts to the functions? eg. publicPosts() becomes publicPosts(40) .... and adds the query var Count in the query string of the URL called.... ?count=40

Cheers!

ghost commented 12 years ago

It does not thow an error but I can not say for sure that the user is getting unfollowed... more testing.

ghost commented 12 years ago

Ok follow/unfollow is working. The issue that was tripping me up was that the functions for getting the users personal stream are using the global endpoint links. I swapped in the correct link and it works.. maybe I'll figure out github later so I can check these things in for you.

jdolitsky commented 12 years ago

cool. I will be mostly unavailable for the next 2 days and wont be able to help much. If you have working code for these issues, I'd appreciate it if you could fork the repo and submit a pull request, and I'll merge your changes

jdolitsky commented 12 years ago

@ravisorg has fixed the delete function, and I took care of the global vs. personal stream. @hxf148 I will open a new issue for the count problem and try to solve this soon. could you provide the code you're currently using?

Thanks!

Josh