Join Us and become a Member for a Verified Badge on Discord to access private areas with the latest PS4 PKGs.
PS4 News       Thread starter PSXHAX       Start date Feb 25, 2017 at 10:38 PM       11,109       6      
Status
Not open for further replies.
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
  • 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
Requests

For all feature requests, please create an Issue.

:arrow: 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')
:arrow: 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.

Download: PlayStation Discord (Latest Version) / GIT
PS4Debug Discord Implementation Proof of Concept
PSN API Updated PHP Wrapper for Developers by Tustin.jpg
 

Comments

CelesteBlue

Developer
Senior Member
Contributor
Verified
Am I dreaming ?

Thank you for the article. I saw on github Tustin did a lot of psn API stuff, and I learnt a lot. I remind of a Windows app doing the same, but I don't remind its name.
 

Nirav Patel

Senior Member
Contributor
Verified
Let me know if i can spoof my PS4 pro firmware version 3.70 with your APIs and update my games that will be very helpful to me and many others here. :)
 

Nirav Patel

Senior Member
Contributor
Verified
I think 1.76 users already have a permanent spoof with memory edit and change version to 9.99.

But people who don't have Linux on their Ps4, may get some hope if atleast they can login to psn without any firmware update.

Waiting for the day when i will be able to logon to psn from my PS4 Pro.
 
Status
Not open for further replies.

:fire: Latest Help Topics

Top