public function Instagram::__construct in Drupagram 6
Same name and namespace in other branches
- 7 drupagram.lib.php \Instagram::__construct()
Constructor for the Instagram class
1 method overrides Instagram::__construct()
- InstagramOAuth::__construct in ./
drupagram.lib.php - Constructor for the InstagramOAuth class
File
- ./
drupagram.lib.php, line 146 - Classes to implement the full Instagram API
Class
- Primary Instagram API implementation class Supports the full REST API for drupagram.
Code
public function __construct($username = NULL, $access_token = NULL) {
if (!empty($username) && !empty($access_token)) {
$this
->set_auth($username, $access_token);
}
}