![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
twitter-ads
Advanced tools
A simple wrapper for Twitter Ads & TON API in NodeJS.
$ npm install twitter-ads
var TwitterAdsAPI = require('twitter-ads');
var T = new TwitterAdsAPI({
consumer_key: 'XXX',
consumer_secret: 'XXX',
access_token: 'XXX',
access_token_secret: 'XXX',
sandbox: false, // defaults to true
api_version: '2' //defaults to 2
});
T.get('accounts/:account_id', {account_id: 'XXX'}, function(error, resp, body) {
if (error) return console.error(error);
console.log(body);
/* If everything goes okay,
you should get something similar to this:
{
data: {
approval_status: "ACCEPTED",
created_at: "2014-07-14T22:51:48Z",
deleted: false,
id: "hkkd",
name: "Some person named Emma",
salt: "973fef8gce1c5d5f6bba4b91827c214a",
timezone: "America/Los_Angeles",
timezone_switch_at: "2014-07-27T07:00:00Z",
updated_at: "2014-08-27T21:59:56Z"
},
data_type: "account",
request: {
params: {
account_id: "hkkd"
}
}
}
*/
});
/* Use T.get, T.post, T.put and T.delete
refer to Twitter API docs for the details on call parameters. */
T.tonUpload({
file: './test.txt',
content_type: 'text/plain',
bucket_name: 'ta_partner'
},
function(error, location) {
if (error) return console.error(error);
console.log(location);
/* If everything goes okay,
you should get something similar to this:
https://ton.twitter.com/1.1/ton/bucket/ta_partner/2892314386/n3UPAcC02roTP6C
*/
});
T.tonDownload({
file: './test.txt',
url: 'https://ton.twitter.com/1.1/ton/bucket/ta_partner/2892314386/n3UPAcC02roTP6C'
},
function(error, size) {
if (error) return console.error(error);
console.log(size);
/* If everything goes okay,
you should get something similar to this:
204923
*/
});
0.2.1
Default version of api to use is now 2. Some improvements to documentation.
FAQs
Twitter Ads API for NodeJS
The npm package twitter-ads receives a total of 0 weekly downloads. As such, twitter-ads popularity was classified as not popular.
We found that twitter-ads demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.