Метод | Описание | |
---|---|---|
__construct ( ) | Setup class. | |
add_endpoint ( ) | Add auth endpoint. | |
add_query_vars ( array $vars ) : string[] | Add query vars. | |
handle_auth_requests ( ) | Handle auth requests. |
Метод | Описание | |
---|---|---|
auth_endpoint ( string $route ) | Auth endpoint. | |
build_url ( array $data, string $endpoint ) : string | Build auth urls. | |
create_keys ( string $app_name, string $app_user_id, string $scope ) : array | Create keys. | |
get_formatted_url ( string $url ) : array | Decode and format a URL. | |
get_i18n_scope ( string $scope ) : string | Get scope name. | |
get_permissions_in_scope ( string $scope ) : array | Return a list of permissions a scope allows. | |
make_validation ( ) | Make validation. | |
post_consumer_data ( array $consumer_data, string $url ) : boolean | Post consumer data. |
Метод | Описание | |
---|---|---|
maybe_delete_key ( array $key ) | Maybe delete key. |
public add_query_vars ( array $vars ) : string[] | ||
$vars | array | |
Результат | string[] |
protected auth_endpoint ( string $route ) | ||
$route | string |
protected get_formatted_url ( string $url ) : array | ||
$url | string | |
Результат | array |
protected get_i18n_scope ( string $scope ) : string | ||
$scope | string | |
Результат | string |
protected get_permissions_in_scope ( string $scope ) : array | ||
$scope | string | |
Результат | array |