Can't get appKeys in V2 API working :(
Is there any chance that with all recent changes to the api appkeys are not working properly?
For example, when trying to make a request to the topics api, I'm calling:
http://api.postrank.com/v2/topic?appKey={ mywebsiteurl.com } &id={ userid } &tags={ tags } &level=1&num=10&start=0
But I always receive back a 400 with "error": "Invalid application key, please check the API documentation."
I've tried appKey with values like "www.mywebsiteurl.com", or the Consumer Key I get after registering for an API key, with no luck. (mywebsiteurl.com is just an example, I'm using my real app url for that, of course).
I'm suspecting that not only I have the wrong api key, but also in the docs there's a mention to a "user_hash"
http://api.postrank.com/v2/topic/{user hash}/{tags}?appkey=postrank.com/example
[ http://www.postrank.com/developers/ap... ]
that doesn't get mentioned anywhere else in the Documentation, as well as not existing in the results of a getUserInfo call.
Would it be possible to post a more detailed example on how I should be creating this call ? The current docs are not really helping!
Thanks!
.marcos
For example, when trying to make a request to the topics api, I'm calling:
http://api.postrank.com/v2/topic?appKey={ mywebsiteurl.com } &id={ userid } &tags={ tags } &level=1&num=10&start=0
But I always receive back a 400 with "error": "Invalid application key, please check the API documentation."
I've tried appKey with values like "www.mywebsiteurl.com", or the Consumer Key I get after registering for an API key, with no luck. (mywebsiteurl.com is just an example, I'm using my real app url for that, of course).
I'm suspecting that not only I have the wrong api key, but also in the docs there's a mention to a "user_hash"
http://api.postrank.com/v2/topic/{user hash}/{tags}?appkey=postrank.com/example
[ http://www.postrank.com/developers/ap... ]
that doesn't get mentioned anywhere else in the Documentation, as well as not existing in the results of a getUserInfo call.
Would it be possible to post a more detailed example on how I should be creating this call ? The current docs are not really helping!
Thanks!
.marcos
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?I'm sorry, after reviewing the Docs a bit more, I did find user-hash mentioned somewhere else. Supposedly, according to the docs, I should be receiving the user-hash on the results of the user/info call:
http://www.postrank.com/user/info.xml
Docs say I should be receiving this:
<?xml version="1.0" encoding="UTF-8"?>
<user>
<email>quentin@example.com</email>
<user-hash>b6589fc6ab0dc82cf12099d1c2d40ab9</user-hash>
</user>
However, this is what actually comes back:
<?xml version="1.0" encoding="UTF-8"?>
<user>
<nick>examplenick</nick>
<id type="integer">12345</id>
</user>
... tried using the user id instead of the user-hash, but of course it didn't work either.
I’m frustrated
-
update: just bumping this bug up, since without that user-hash, I can't access any of the topics API :( I guess it was an oversight when moving to the new API? thanks! -
Inappropriate?ouch, my bad for not reading the docs properly.
http://api.postrank.com/v2/topic?appKey=[...]
should have been:
http://api.postrank.com/v2/topic?appkey=[...]
with "appkey" all lowercase and the value for it, is the URI of my app.
v2 api does not require authentication, hence the oAuth key / secret has nothing to do with this.
Got to say, docs are kinda confusing though. Just as I noted in my previous comment there's a couple of inconsistencies on the way results come back:
http://www.postrank.com/user/info.xml
as well as methods that don't seem to exist anymore.
http://www.postrank.com/subscriptions...
(404 - also tried with fresh feed-id's received from
http://www.postrank.com/subscriptions... )
Thanks for your help!
.marcos
I’m amused
-
Inappropriate?Yikes, sorry about the confusion! Looks like we've got a few things to fix:
1) user_hash not being reported under user/info call
2) subscriptions/feed routing is missing
Anything else I'm missing? -
Inappropriate?Hi Iliya.
I can see now that user-hash is returned properly from the user/info call.
Thanks!
subscriptions/feed still returns 404.
two follow-up questions (maybe I should open a new report here)
1) calls to the topic api generally timeout. Sometimes it will timeout for the first 2 or 3 calls, but then it (feels as if) results get cached, and returned pretty fast.
FYI the call I'm referring to is:
http://api.postrank.com/v2/topic/{user-hash}/{tag}?appkey={ appkey }&num={num}&level={level}&start={offset}
2) You used to have an api method that will return Postranked results all of a users' subscriptions. Has that gone anywhere else and I can't find it?
Right now, I could get a list of a user subscriptions, then query for Top Posts for each of the returned feeds, but that's not really efficient, and considering how slow api calls are, it's just a bad idea.
I can get around asking users to create a specific tag (or "topic" I guess it is now) , and tag all their feeds with that, but it's really cumbersome and I'm afraid not many users will get how to do that quickly.
Are there plans to have such an api method?
Or maybe at least tagging all of a user's feeds with a default tag we'd know it exists so we can call for:
http://api.postrank.com/v2/topic/{user-hash}/all-topics? [ ... ]
or something similar?
thanks.
I’m thankful
-
Inappropriate?1) Look into the timeouts -- shouldn't be the case, for sure!
2) Yep, you can still do that, ex for retrieving the RSS feed:
http://feeds.postrank.com/topic/{user hash}
For the API endpoint, just don't provide a tag (it's optional) and you should get the same results:
http://api.postrank.com/v2/topic/{user hash}/{tags}?appkey=postrank.com/example
3) Still working on subsbscriptions/feeds endpoint -
Inappropriate?Marcos
I am trying to reach you by any way. I am working for french TV and my production company would like to deal a partnership with you.
Could you answer me on cvieille@troisiemeoeil.net?
Thx
Claire
Loading Profile...




EMPLOYEE
