$url_prefix
$url_prefix : string
URL prefix
If this property is empty, service name will be used. e.g. http://example.jp/facebook/
Description of twitter_controller
$url_prefix : string
URL prefix
If this property is empty, service name will be used. e.g. http://example.jp/facebook/
get_service_instance(string $service) : null|\Gianism\Service\Common\Mail
Get service instance
string | $service |
get_api_url(string $action) : string|false
Return api URL to authenticate
If you need additional information (ex. token), use $this->session_write inside.
$this->session_write('token', $token);
return $url;
string | $action | 'connect', 'login' |
URL to redirect
get_response(string $endpoint, string|array $request, string $method, bool $json, array $additional_headers) : array|\stdClass|bool|null
Get Request
string | $endpoint | |
string|array | $request | |
string | $method | If x-www-form-urlencoded required, pass array or else, pass query string. |
bool | $json | if this request is JSON |
array | $additional_headers | Additional headers. |