twitter-api-v2-patch
Version:
Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.
18 lines (17 loc) • 429 B
JavaScript
import { API_ADS_PREFIX } from '../globals';
import TwitterAdsReadOnly from './client.ads.read';
/**
* Base Twitter ads client with read/write rights.
*/
export default class TwitterAdsReadWrite extends TwitterAdsReadOnly {
constructor() {
super(...arguments);
this._prefix = API_ADS_PREFIX;
}
/**
* Get a client with only read rights.
*/
get readOnly() {
return this;
}
}