public function InstagramOAuth::get_authenticate_url in Drupagram 7
Same name and namespace in other branches
- 6 drupagram.lib.php \InstagramOAuth::get_authenticate_url()
Returns the properly formatted authentication url
File
- ./
drupagram.lib.php, line 518 - Classes to implement the full Instagram API
Class
- InstagramOAuth
- A class to provide OAuth enabled access to the Instagram API
Code
public function get_authenticate_url() {
$url = $this
->create_url('oauth/authenticate', '');
if (!empty($this->token)) {
$url .= '?access_token=' . $this->token['access_token'];
}
return $url;
}