1

I think I know what's wrong but I won't be able to fix it until later tonight or tomorrow. In the meantime, please code your app as if it were working. I'll get it fixed as soon as I can. Unfortunately I have to go run the DaniWeb meetup group right now! :)

I just went ahead and tested it, and the voting mechanism works by design for me. I'm not able to reproduce your errors. It should be noted that currently only voting is supported and not unvoting. (This will most likely be added in the future). If you attempt to use the API to vote on a post that you have already voted on, or your own post, it will return success: false.

I tried a few times in a row to vote through the API, unvote through the standard UI, and then re-vote through the API, and it all worked as intended.

1

Does that imply that filter can only be used on the last one? It appears so, just like it confirmed. If so, is it similar with the forum_id in the "Fetch Articles" call for a member?

Yes for both filter and forum_id.

Oh, and pasting lines of links in a code block formats without newlines.

Not sure what you mean. Can you explain?

0

If I paste say 4 lines with each an URL on them, and indent them with a tab to put them in a code block, they will show without newlines.

http://www.daniweb.com/api/posts http://www.daniweb.com/api/posts/{:IDS} http://www.daniweb.com/api/articles/{:ID}/posts http://www.daniweb.com/api/forums/{:ID}/posts http://www.daniweb.com/api/members/{:ID}/posts?filter= 

Edit this post, and you'll see.

I tried a few times in a row to vote through the API, unvote through the standard UI, and then re-vote through the API, and it all worked as intended.

I'll try again soon. Thanks for checking.

Edited by pritaeas

0

Just tried again. I was able to upvote your first post in this thread. Then manually unvoted. Next try through code returned success: false. After a little while success: true. So, it works, but there is a delay I'm experiencing.

Strange part is that I'm still unable to upvote/downvote diafol's OP again (post ID 1938485).

0

Another thing I noticed:

When called, both return 400. Is there no way to determine that the 1st is invalid, while the 2nd has no data? Even with JSONP both return the same result.

Just want to mention. If you are requesting an RSS feed with an invalid forum ID, and you are using curl, then you can recognize this if you get a 301 redirect.

Edited by pritaeas

0

Dani. For some reason the PHP script I had to login to DW to get a token has stopped working. Is there anything that you have changed? I can't find an obvious reason why it no longer works.

Update: diafol's code still works, so there has to be a change in the server somewhere. I'll investigate later, ignore my comment for now.

Edited by pritaeas

0

Ok. Resetting my PHP script to an earlier one solved the issue, but I'm still unsure why the newer one decided to stop working. I guess my webhost made a minor change, can't explain it otherwise. Consider this solved.

0

Please start a new thread with both versions and I'll let you know.

Thanks for the offer, but no need. I already ditched it anyway.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.