2017 © Pedro Peláez
 

library user-asset-lib

PHP library to use UserAsset

image

phamloc/user-asset-lib

PHP library to use UserAsset

  • Monday, April 20, 2015
  • by phamloc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP library to use UserAsset, (*1)

Usage:, (*2)

require 'src/UserAsset.php';

$config = [
    'auth_name' => 'Nastar',
    'auth_password' => '123456',
    'api_url' => 'http://userasset.zii.com/api.php'
];

$ua = new phamloc\UserAsset\UserAsset($config);
$result = $ua->putObject('upload', '2.jpg', "http://www.twinfinite.net/wp-content/uploads/2014/08/AC-feature.jpg", true);
print_r($result);

echo $ua->getUrl(['upload', '2.jpg']);

$result = $ua->deleteObject('upload', '2.jpg');
print_r($result);

The Versions

20/04 2015

dev-master

9999999-dev

PHP library to use UserAsset

  Sources   Download