This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a Pre-request script for Postman client to remediate OAuth 1.0a issue | |
* where certain request fails if it has a query parameter that includes some special characters. | |
* | |
* NOTE: This Pre-script is only available for "GET" request. | |
* There's a workaround for POST request. | |
* See: https://github.com/twitterdev/postman-twitter-ads-api/issues/2 | |
* | |
* In order to use this Pre-request script, you need to change your "Authorization" type to | |
* "No Auth" only for the target request and do not apply to the top-level object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This snippet uses variables.get() for oauth token/secret which means | |
you need to store those in the Shared Environment as a raw text. | |
OR you may also want to consider using get_secret() instead. | |
*/ | |
const oauth_consumer_key = variables.get("oauth_consumer_key"); | |
const oauth_consumer_secret = variables.get("oauth_consumer_secret"); | |
const oauth_token = variables.get("oauth_token"); | |
const oauth_secret = variables.get("oauth_secret"); | |
const oauth_signing_key = oauth_consumer_secret + '&' + oauth_secret; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ansible-playbook -i localhost, hoge.yml | |
PLAY [localhost] ************************************************************** | |
TASK: [debug ] **************************************************************** | |
ok: [localhost] => { | |
"var": { | |
"dict_merged": { | |
"foo": { | |
"bar": 1, |