node-snapchat-marketing
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "node-snapchat-marketing", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Nodejs client for unofficial Snapchat Marketing API", | ||
@@ -5,0 +5,0 @@ "main": "Snapchat.js", |
@@ -11,5 +11,8 @@ const fetch = require("node-fetch") | ||
response_type, | ||
accessToken: "", | ||
refreshToken:"", | ||
urls: { | ||
authorize: `https://accounts.snapchat.com/login/oauth2/authorize?client_id=${client_id}&redirect_uri=${redirect_uri}&response_type=${response_type}`, | ||
accessToken: `https://accounts.snapchat.com/login/oauth2/access_token?grant_type=${grant_type}&client_secret=${client_secret}&client_id=${client_id}`, | ||
// accessToken: `https://accounts.snapchat.com/login/oauth2/access_token?grant_type=${grant_type}&client_secret=${client_secret}&client_id=${client_id}`, | ||
me: "https://adsapi.snapchat.com/v1/me", | ||
@@ -139,2 +142,7 @@ mediaBase: "https://adsapi.snapchat.com/v1/adaccounts", | ||
Snap.prototype.setRefreshToken = function(refreshToken) | ||
{ | ||
this.options.refreshToken = refreshToken | ||
} | ||
function request(url, options, callback) | ||
@@ -141,0 +149,0 @@ { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5162
138
1