amido / profile-service
此包已被弃用,不再维护。未建议替代包。
用于访问Amido个人资料服务的PHP库
dev-master
2014-12-15 14:09 UTC
Requires
- nategood/httpful: ~0.2
Requires (Dev)
- phpunit/phpunit: 4.3.*
This package is not auto-updated.
Last update: 2024-09-24 09:08:43 UTC
README
此包与Amido个人资料服务一起使用,用于持久化和检索个人资料。
安装
Composer
将此添加到应用程序的composer.json中
{ "require": { "amido/profile-service": "*" } }
然后执行
composer install
用法
创建一个新实例
use Amido\ProfileService; $service = new ProfileService('subscription_key_here');
然后通过以下方法调用API
$service->create_profile('realm_here', 'user_id_here', 'delegate_access_token_here', array('profile' => 'here));