hypejunction/elgg-ws-client
Composer 安装命令:
composer require hypejunction/elgg-ws-client
包简介
A simple PHP client for interfacing with Elgg's web services
关键字:
README 文档
README
PHP Client for interfacing with Elgg's web services
Usage
use \hypeJunction\WebServices\Client; $client = new Client('http://example.com/', 'apikey_abcdef123466'); // Get a list of user's blogs $result = $client->get('blog.get_posts', [ 'username' => 'my-username', ]); // Get a user token to interface on user's behalf $token = $client->getAuthToken('my-username', 'my-password'); // Post a blog $result = $client->post('blog.save_post', [ 'title' => 'My blog', 'description' => 'This is what I am blogging about', 'excerpt' => 'Me blogging', 'access_id' => 2, // public 'tags' => 'blog,misc', ], $token);
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2016-07-04