How to use library
If you use PHP5, you are able to use YggDore Sky Gate Library.
When you use YSGClient class, you are able to authorize and get ID easily.
Download and configuration
Download YggDore Sky Gate Library from here and copy these files to path of include_path written in php.ini.
Sample
In this case, you use php and recieved destination(certification) URL by ysg of request.
The flow from certification to getting ID is as follow.
include_once( "YggDore/SkyGate/YSGClient.php" );

$id = YSGClient::cert( $_POST['ysg'] );
Load library

Certification and getting ID
($id is stored ID)

Two lines certification
This is documentation about YSGClient class of YggDore Sky Gate Library.