How to generate a Shopify-Access-Token

Highlighted
New Member
1 0 0

Hello, actually I been have some throubles to generate my Token; I create a app, make the property configurations, run my script, and them the app gave to me,  a code, hmac, shop, and timestamp, but it not a Token.

I'm using de follow script to get my Token, but it no working.

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $access_token_url);
    curl_setopt($ch, CURLOPT_POST, count($query));
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($query));
    $result = curl_exec($ch);
    curl_close($ch)

  $result = json_decode($result, true);
  $access_token = $result['access_token'];

 

No Token but a Error:

Unknown SSL protocol error in connection to wuko-gals.myshopify.com:443

 

What can I do about to solve this issuse?, Is correct my script?

Thanks in advance,

Wilson Rivas.

0 Likes