Today PlayStation developer @Tustin let everyone know on Twitter that he's updated his PSN API PHP wrapper for developers, with one of the more popular services currently being the PSN Leaderboard API.
Download: psn-php-master.zip / Latest Release / GIT / PSN Communities
To quote from the README.md: PSN-PHP Wrapper
This is a very easy to use PHP wrapper for the PSN API.
https://travis-ci.org/Tustin/psn-php
Usage
Documentation for this library can be found here: PSN-PHP Documentation
Features
For all feature requests, please create an Issue.
Update: Also below is a PSNChecker Python script from Tustin, with details to quote: I rewrote my PSN checker in python for your Discord servers (as requested by KronosPlz) - enjoy!
Download: psnchecker.py / GIT
psnchecker.py
Here's a Simple PSN Registration Bot from kronoscloud for those interested also:
Download: Simple-PSN-Registration-Bot-master.zip / GIT
From the README.md, to quote: Simple-PSN-Registration-Bot
This Bot will allow you to create a playstation network account and assign an Online ID to it.
If you have a 2Captcha account you can set the API Key in the code and have the captchas retrieved automatically, if not please download this script I created for tamper monkey https://greasyfork.org/en/scripts/38215-recaptcha
Once installed go to https://account.sonyentertainmentnetwork.com/liquid/reg/account/create-account!input.action and complete the captcha copy the token that appears in the big box and paste it in to the captcha field of the bot
You must provide a new captcha token with each attempt.
PS4Debug Discord Implementation Proof of Concept
Download: psn-php-master.zip / Latest Release / GIT / PSN Communities
To quote from the README.md: PSN-PHP Wrapper
This is a very easy to use PHP wrapper for the PSN API.
https://travis-ci.org/Tustin/psn-php
Usage
Documentation for this library can be found here: PSN-PHP Documentation
Features
- Authenticate with PSN
- Get user information
- View and manage your friends list
- Manage and send messages through PSN
- View trophies and trophies for a specific game
- Create, manage, and view communities
For all feature requests, please create an Issue.
Update: Also below is a PSNChecker Python script from Tustin, with details to quote: I rewrote my PSN checker in python for your Discord servers (as requested by KronosPlz) - enjoy!
Download: psnchecker.py / GIT
psnchecker.py
Code:
import discord
import asyncio
import requests
import json
client = discord.Client()
def check_psn(psn):
response = requests.post('https://accounts.api.playstation.com/api/v1/accounts/onlineIds', json={"onlineId": psn, "reserveIfAvailable": False})
return response.status_code != 401 and response.status_code != 400
@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
@client.event
async def on_message(message):
if message.content.startswith('!check'):
splits = message.content.split()
if len(splits) != 2:
return
psn = splits[1]
if check_psn(psn):
await client.send_message(message.channel, '{0} is available'.format(psn))
else:
await client.send_message(message.channel, '{0} is taken'.format(psn))
client.run('token')
Download: Simple-PSN-Registration-Bot-master.zip / GIT
From the README.md, to quote: Simple-PSN-Registration-Bot
This Bot will allow you to create a playstation network account and assign an Online ID to it.
If you have a 2Captcha account you can set the API Key in the code and have the captchas retrieved automatically, if not please download this script I created for tamper monkey https://greasyfork.org/en/scripts/38215-recaptcha
Once installed go to https://account.sonyentertainmentnetwork.com/liquid/reg/account/create-account!input.action and complete the captcha copy the token that appears in the big box and paste it in to the captcha field of the bot
You must provide a new captcha token with each attempt.
- https://github.com/Tustin/PlaystationDiscord - Rich Presence for PlayStation 4 games
PS4Debug Discord Implementation Proof of Concept