Open extra topbar

Looking for a beginner tutorial for JSON api

If you are new here, please see some information on how to ask for support. Thank you!

Looking for a beginner tutorial for JSON api

dashed-slug.net Forums CoinPayments.net Coin Adapter extension support Looking for a beginner tutorial for JSON api

This topic contains 1 reply, has 2 voices, and was last updated by  alexg 3 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6046

    levocoin
    Participant

    Hello first thanks for this great plugin,
    i’m getting this error message:

    Warning: file_get_contents(http://localhost/mywebsite/?__wallets_action=get_coins_info&__wallets_apiversion=3): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden

    function testJson() {
    $json = file_get_contents('http://localhost/mywebsite/?__wallets_action=get_coins_info&__wallets_apiversion=3');
    	$obj = json_decode($json);
    	return $obj;
    }

    with cURL

    {“result”:”error”,”code”:-106,”message”:”Must be logged in”}

    Anyone who could share with me a tutorial for using JSON Api in a custom plugin?

    thanks in advance folks

    #6051

    alexg
    Keymaster

    Hello,

    You can find detailed instructions in the accompanying pdf documentation that comes with the bundle download of the plugin.

    You can get the bundle download from: https://www.dashed-slug.net/downloads/

    Please see under APIs -> Wallets JSON API -> Programmatic access to the Transactions API

    You must first assign the access_wallets_api capability to the user.

    You can use the plugin’s capabilities section to assign this capability to all user roles except the Administrator (for safety). If you wish to use the API with an administrator account, use any plugin that can edit capabilities to assign access_wallets_api.

    with regards

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.