# oAuth parameter omitted in help section

**URL:** https://forum.mautic.org/t/oauth-parameter-omitted-in-help-section/3552
**Category:** Development
**Created:** [April 20, 2016, 10:38am UTC](https://forum.mautic.org/t/oauth-parameter-omitted-in-help-section/3552 "2016-04-20T10:38:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![seeeking](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@seeeking](https://forum.mautic.org/u/seeeking)
#### Post date: [April 20, 2016, 10:38am UTC](https://forum.mautic.org/t/oauth-parameter-omitted-in-help-section/3552/1 "2016-04-20T10:38:11Z")

</div>

Just a heads-up, guys: in oAuth help section [here](http://example.com) there’s an example header with the complete list of parameters to be sent to obtain oAuth access token.  
  
  
  
Turns out, **there’s one parameter missing** there and without it you will always get the ‘ **parameter\_absent** ’ error. The missing parameter is the **oauth\_token** which is the request token obtained in previous steps.  
  
  
  
Took me almost one complete day to find it out the hard way, so just in case somebody is (like myself) developing an alternative oAuth class for Mautic, be aware: the complete header should look like this:

Code:

POST /oauth/v1/access\_token Authorization: OAuth oauth\_callback="https%3A%2F%2Fyour-callback-uri.com", oauth\_consumer\_key="CONSUMER\_KEY", oauth\_nonce="UNIQUE\_STRING", oauth\_signature="GENERATED\_REQUEST\_SIGNATURE", oauth\_signature\_method="HMAC-SHA1", oauth\_timestamp="1318467427", oauth\_token="REQUEST\_TOKEN", oauth\_verifier="OAUTH\_VERIFIER\_FROM\_STEP\_TWO" oauth\_version="1.0"

  
(Note the oauth\_token parameter before oauth\_verifier)  
Cheers ![:)]( ":)")

---

<div class="post-metadata">

### Author: ![seeeking](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@seeeking](https://forum.mautic.org/u/seeeking)
#### Post date: [April 20, 2016, 10:38am UTC](https://forum.mautic.org/t/oauth-parameter-omitted-in-help-section/3552/2 "2016-04-20T10:38:11Z")

</div>

Just a heads-up, guys: in oAuth help section [here](http://example.com) there’s an example header with the complete list of parameters to be sent to obtain oAuth access token.

Turns out, there’s one parameter missing there and without it you will always get the ‘parameter\_absent’ error. The missing parameter is the oauth\_token which is the request token obtained in previous steps.

Took me almost one complete day to find it out the hard way, so just in case somebody is (like myself) developing an alternative oAuth class for Mautic, be aware: the complete header should look like this:

`POST /oauth/v1/access_token
Authorization: 
        OAuth oauth_callback="https%3A%2F%2Fyour-callback-uri.com",
              oauth_consumer_key="CONSUMER_KEY",
              oauth_nonce="UNIQUE_STRING",
              oauth_signature="GENERATED_REQUEST_SIGNATURE",
              oauth_signature_method="HMAC-SHA1",
              oauth_timestamp="1318467427",
              oauth_token="REQUEST_TOKEN",
              oauth_verifier="OAUTH_VERIFIER_FROM_STEP_TWO"
              oauth_version="1.0"`

(Note the oauth\_token parameter before oauth\_verifier)  
Cheers 🙂
