Github: github.com/SycAlright/SMMS-SDK

Update:

  • Support return-type change
  • Support image upload
  • Support for all functions by API-v2
  • PHP version must >= 5.5

For details, please refer to test.php and example img_rand.php.

require("smms.class.php");
// Init, your authorization gets from dashboard (https://sm.ms/home/apitoken)
$sdk = new sdk\smms('Your Authorization');
$profile = $sdk->User_Profile('json'); // Return type
print_r($profile);

Return type: json or xml, the default value is json.