Skip to content

Instantly share code, notes, and snippets.

@marwan-nwh
Last active December 14, 2021 13:11
Show Gist options
  • Save marwan-nwh/f07644bf597324f09f061cbd481dfe7e to your computer and use it in GitHub Desktop.
Save marwan-nwh/f07644bf597324f09f061cbd481dfe7e to your computer and use it in GitHub Desktop.
const Oauth1Helper = require("./helper");
const axios = require("axios");
const authHeader = Oauth1Helper.getAuthHeaderForRequest(request);
await axios.post(URL, JSONObj, {
headers: {
Authorization: authHeader.Authorization,
"Content-Type": "application/json",
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment