PRO: oAuth Example – getToken

This pages shows the oAuth-Token requested from

The request on this URL must be like this:

  • method: CURL-POST
  • curloptions: Here we define the login user/password to get the token.
CURLOPT_POSTFIELDS={"user":"test", "password":"mypass"}
  • twig-template:
{{ _context.access_token }}

Shortcode (try {{ _context | json_encode }} ): If you get the token remove the “httpstatuscodemustbe200=no” from the shortcode

[jsoncontentimporterpro nameoftemplate="gettoken" httpstatuscodemustbe200=no orderofshortcodeeval=10]

This gives us the token (the token is md5(“mypass”) – in real life this is a not that easy):


The complete API-response is:


In action:

curlPOST: failed, http-code: 301