Skip to content

Commit

Permalink
Merge pull request #4 from smaeda-ks/smaeda-ks/version7
Browse files Browse the repository at this point in the history
bump version (Ads API version 7)
  • Loading branch information
smaeda-ks authored Mar 6, 2020
2 parents fa1d058 + feba6b1 commit 0883218
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twitter-ads-api-analytics-debugger",
"version": "0.0.3",
"version": "0.0.4",
"description": "An Electron-based desktop application for Twitter Ads Analytics API.",
"main": "index.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions utils/http.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const request = require('request');

const ASYNC_BASE_URI = ({ account_id }) => `https://ads-api.twitter.com/6/stats/jobs/accounts/${account_id}`;
const SYNC_BASE_URI = ({ account_id }) => `https://ads-api.twitter.com/6/stats/accounts/${account_id}`;
const API_VERSION = '7'
const ASYNC_BASE_URI = ({ account_id }) => `https://ads-api.twitter.com/${API_VERSION}/stats/jobs/accounts/${account_id}`;
const SYNC_BASE_URI = ({ account_id }) => `https://ads-api.twitter.com/${API_VERSION}/stats/accounts/${account_id}`;

class HttpClient {

Expand Down

0 comments on commit 0883218

Please sign in to comment.