Archived
1
0
Fork 0
This repository has been archived on 2026-04-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
httpcb/app/library/OAuth/Adapter/AdapterInterface.php

43 lines
796 B
PHP

<?php
namespace Httpcb\OAuth\Adapter;
interface AdapterInterface
{
/**
* Construct a adapter object.
*
* @param string $provider_name
* @param array $options
*/
public function __construct($provider_name, $options);
/**
* Get the provider name
*
* @return string
*/
public function getProviderName();
/**
* Get the authorization url.
*
* @return string
*/
public function getAuthorizationUrl();
/**
* Fetch the AccessToken using the temporary code returned from provider.
*
* @param $code
* @return
*/
public function fetchAccessToken($code);
/**
* Get resource data from provider.
*
* @return array
*/
public function getResourceData();
}