Now, I have this
Code: Select all
object(Maniaplanet\WebServices\Exception)#4 (9) { ["HTTPStatusCode":protected]=> int(400) ["HTTPStatusMessage":protected]=> string(11) "Bad Request" ["message":protected]=> string(190) "API username "jonthekiller|lottomania" is not allowed to post notifications for Manialink "lottery". You can configure that on the ManiaHome Manialink, in Options > Manager > Your manialinks" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(95) "/home/jonthekiller/public_html/Manialinks/loto/libraries/Maniaplanet/WebServices/HTTPClient.php" ["line":protected]=> int(332) ["trace":"Exception":private]=> array(2) { [0]=> array(6) { ["file"]=> string(94) "/home/jonthekiller/public_html/Manialinks/loto/libraries/Maniaplanet/WebServices/ManiaHome.php" ["line"]=> int(69) ["function"]=> string(7) "execute" ["class"]=> string(34) "Maniaplanet\WebServices\HTTPClient" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(4) "POST" [1]=> string(33) "/maniahome/notification/personal/" [2]=> array(1) { [0]=> object(Maniaplanet\WebServices\Notification)#1 (9) { ["senderName"]=> string(7) "lottery" ["receiverName"]=> string(12) "jonthekiller" ["message"]=> string(46) "jonthekiller has bought a ticket on LottoMania" ["link"]=> string(7) "lottery" ["isPrivate"]=> NULL ["iconStyle"]=> string(16) "ManiaPlanetLogos" ["iconSubStyle"]=> string(22) "IconPlanetsPerspective" ["group"]=> NULL ["priority"]=> NULL } } } } [1]=> array(6) { ["file"]=> string(56) "/home/jonthekiller/public_html/Manialinks/loto/notif.php" ["line"]=> int(23) ["function"]=> string(24) "postPersonalNotification" ["class"]=> string(33) "Maniaplanet\WebServices\ManiaHome" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> object(Maniaplanet\WebServices\Notification)#1 (9) { ["senderName"]=> string(7) "lottery" ["receiverName"]=> string(12) "jonthekiller" ["message"]=> string(46) "jonthekiller has bought a ticket on LottoMania" ["link"]=> string(7) "lottery" ["isPrivate"]=> NULL ["iconStyle"]=> string(16) "ManiaPlanetLogos" ["iconSubStyle"]=> string(22) "IconPlanetsPerspective" ["group"]=> NULL ["priority"]=> NULL } } } } ["previous":"Exception":private]=> NULL }
I have add my login "jonthekiller" on the manager.
In Manager / API, the link ManiaPlanet Developers Website doesn't work.
I need to add "jonthekiller|lottomania" in the API page and after it works now.
If we put the nickname, I have error http 500 but the nickname is already add automatically, maybe add this in the documentation.
Maybe add in the documentation, we need to add the API name in Maniahome for send notifications
I have see if we would like delete the notification, maybe remove the format.