Bitcoin and Altcoin Wallets 6.2.4

legacy-json.php

The legacy JSON-API v3, now superseeded by the WP REST Wallets API v1.

To developers: Please migrate your apps to the new WP REST API if at all possible! This JSON API is deprecated. It is emulated here to allow compatibility for users who have already built Android apps.

Tags
author

Alexandros Georgiou info@dashed-slug.net

deprecated

Since 6.0.0 this API is deprecated and may be removed in a future version.

Table of Contents

LATEST_API_VERSION  = 3
user_profile_legacy_api_key()  : mixed
json_api_init()  : mixed
This hook provides friendly URI mappings for the JSON API.
json_api_query_vars()  : mixed
json_api_parse_request()  : mixed
coin_comparator()  : mixed
get_effective_user_id()  : mixed
In case of programmatic access, checks that the specified user_id matches with the API key passed.
json_api_3_handle()  : mixed

Constants

LATEST_API_VERSION

public mixed LATEST_API_VERSION = 3

Functions

user_profile_legacy_api_key()

user_profile_legacy_api_key(int $user_id) : mixed
Parameters
$user_id : int
Return values
mixed

json_api_init()

This hook provides friendly URI mappings for the JSON API.

json_api_init() : mixed
Return values
mixed

json_api_query_vars()

json_api_query_vars(mixed $vars) : mixed
Parameters
$vars : mixed
Return values
mixed

json_api_parse_request()

json_api_parse_request(mixed $query) : mixed
Parameters
$query : mixed
Return values
mixed

coin_comparator()

coin_comparator(mixed $a, mixed $b) : mixed
Parameters
$a : mixed
$b : mixed
Return values
mixed

get_effective_user_id()

In case of programmatic access, checks that the specified user_id matches with the API key passed.

get_effective_user_id() : mixed

Checks the the wallets_api_key GET parameter, the Bearer HTTP_AUTHORIZATION header, and the Authorization header.

Tags
throws
Exception

If passed API key does not match.

Return values
mixed

json_api_3_handle()

json_api_3_handle(mixed $query, mixed $action) : mixed
Parameters
$query : mixed
$action : mixed
Return values
mixed

Search results