UNPKG

lincd-quora-ads

Version:

An API wrapper for Quora's Ads API.

21 lines (15 loc) 591 B
# LINCD Quora API This API is designed to be directly PnP with Quora's ad API which you can find [here](https://www.quora.com/ads/api9169a6d6e9b42452d500a61717d87d15d5fa49ec5b53030741178130) ```ts // from env vars or wherever const accessToken = myAccessToken(); const refreshToken = myRefreshToken(); const API = new QuoraAPI(accessToken, refreshToken); API.clientId = "..."; API.clientSecret = "..."; // Recommended options; API.forceHTTPS = true; API.delay = 500; // in ms // In some func const adSets: AdSet[] = await API.getAdSetsFromCampaign(campaign.id); ```