-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.md
61 lines (41 loc) · 1.16 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
![Behance API Logo](http://assets.behance.net/img/dev/gear.png)
Behance Network API / PHP (5.2+)
================================
Basic implementation to access User, Project, Work in Progress and Collection data
See [http://be.net/dev](http://be.net/dev) for more information and documentation.
Authentication
--------------------
Get an API key by registering your application here: [http://be.net/dev/register](http://be.net/dev/register)
Install via Composer
--------------------
```json
{
"require": {
"behance/api-network": "~2.0.0"
}
}
```
Usage
--------------------
``` php
require_once( './vendor/autoload.php' );
$client = new Behance\Client( $client_id );
// User data
$client->getUser( 'bryan' );
// User's list of projects
$client->getUserProjects( 'bryan' );
// User's work in progress
$client->getUserWips( 'cfaydi' );
// Project data
$client->getProject( 2812719 );
// Project's comments
$client->getProjectComments( 2812719 );
// Featured project list
$client->searchProjects( array() );
// Search for motorcycles
$client->searchProjects( array( 'q' => 'motorcycles' ) );
```
Requirements
------------
1. Requires PHP 5.2+
2. PHP cURL module