@honkandgo/spotifyads
v1.4.3
Published
Access Spotify Ads REST API (json based) from Node.js.
Downloads
30
Readme
spotifyads
Access Spotify Ads REST API (json based) from Node.js.
Install
npm -i @honkandgo/spotifyads
Use
import SpotifyAdsClient from '@honkandgo/googleads'
const spotifyads = new SpotifyAdsClient({
clientId: <SPOTIFY_CLIENT_ID>
clientSecret: <SPOTIFY_CLIENT_SECRET>
refreshToken: <REFRESH_TOKEN> (optional)
})
Passing refreshToken in constructor is optional. You can also pass refreshToken as a parameter to any method
const refreshToken = ...
const accountId = ...
const campaigns = await spotifyads.getCampaignsByAdAccount(accountId, refreshToken)