library elgg-ws-client
A simple PHP client for interfacing with Elgg's web services
hypejunction/elgg-ws-client
A simple PHP client for interfacing with Elgg's web services
- Sunday, July 3, 2016
- by hypeJunction
- Repository
- 1 Watchers
- 1 Stars
- 7 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Elgg Web Services Client
PHP Client for interfacing with Elgg's web services, (*1)
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);
dev-master
9999999-dev
http://hypejunction.com
A simple PHP client for interfacing with Elgg's web services
Sources
Download
GPL-2.0
The Requires
-
php >=5.5
-
ext-json *
-
ext-curl *
The Development Requires
by
Ismayil Khayredinov
api
web services
elgg
1.0.0
1.0.0.0
http://hypejunction.com
A simple PHP client for interfacing with Elgg's web services
Sources
Download
GPL-2.0
The Requires
-
php >=5.5
-
ext-json *
-
ext-curl *
The Development Requires
by
Ismayil Khayredinov
api
web services
elgg