How to generate access token using curl

How to use Poynt REST APIs using curl