Page 1 of 1
[Solved] Hmm ...
Posted: 20 Apr 2011, 15:48
by fastforza
So my ASP.NET version of the ManiaHome library is done, but I've run into a little problem.
When I'm debugging, trying to post test messages, all I get is the following response ...
Code: Select all
{"message":"API username \"\" is not allowed to post notifications for Manialink \"forzyy\". You can configure that on the ManiaHome Manialink, in Options > Manager > Your manialinks"}
I have configured my manialink on the ManiaHome manialink, my API is linked to. Have gone around in circles on the manialink and can't seem to figure out where I've gone wrong.
Solutions?
Re: Hmm ...
Posted: 20 Apr 2011, 15:53
by TheM
fastforza wrote:Code: Select all
{"message":"API username \"\" is not allowed to post notifications for Manialink \"forzyy\". You can configure that on the ManiaHome Manialink, in Options > Manager > Your manialinks"}
I'm not expert in ManiaHome, but it seems that you haven't provided your API username...
Re: Hmm ...
Posted: 20 Apr 2011, 15:54
by fastforza
TheM wrote:fastforza wrote:Code: Select all
{"message":"API username \"\" is not allowed to post notifications for Manialink \"forzyy\". You can configure that on the ManiaHome Manialink, in Options > Manager > Your manialinks"}
I'm not expert in ManiaHome, but it seems that you haven't provided your API username...
I have and I think this is where I'm stumped a little.
Re: Hmm ...
Posted: 21 Apr 2011, 03:53
by fastforza
Problem solved, I overlooked the 'Basic Auth' part and realised I was passing network credentials instead of the 'Authorization' HTTP header.
ASP.NET library works great now too.

Re: [Solved] Hmm ...
Posted: 21 Apr 2011, 12:13
by gouxim
Btw, if you want to play the API, you can use:
Code: Select all
https://api.maniastudio.com/foobar/
You can GET, POST, PUT, DELETE it so you can test how it all works
Note that on all services, you can change the format either by specifying Accept (for response format) or Content-type (for request body format), or by adding the format in the url.
For example you can try:
http://api.maniastudio.com/foobar/
http://api.maniastudio.com/foobar/index.json
http://api.maniastudio.com/foobar/index.xml
http://api.maniastudio.com/foobar/index.html
http://api.maniastudio.com/foobar/index.txt
Re: [Solved] Hmm ...
Posted: 21 Apr 2011, 12:21
by fastforza
Cool, thanks gou.
