Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
apple-search-ads-js
Advanced tools
Readme
Opinionated Apple Search Ads API client library for Javascript
$ npm install apple-search-ads-js
const AsaApi = require('apple-search-ads-js');
const Certificate = AsaApi.Certificate;
const ASAApiError = AsaApi.ASAApiError;
const asaApi = new AsaApi('<org-id-here>', new Certificate(
'<your-pem>.pem',
'<your-key>.key'
));
(async () => {
try {
const selector = {
conditions: [
{field: 'status', operator: 'EQUALS', values: ['ENABLED']}
]
};
// retrieve enabled campaigns with 15 results per page
const resp = await asaApi.campaigns.find(selector, {pageSize: 15});
const campaigns = resp.results;
while (campaigns && campaigns.length > 0) {
for (let campaign of campaigns) {
// Do something with campaign
console.log(`Fetched campaign: ${campaign.name}`);
}
if (cResp.next) {
cResp = await cResp.next();
campaigns = cResp.results;
} else {
campaigns = undefined;
}
}
} catch (err) {
if (err instanceof ASAApiError) {
err.print(console);
}
throw err;
}
});
(taken from Apple Search Ads Authentication docs)
To establish SSL authentication, do the following steps:
Note: Certificates expire after 24 months, at which time you can download a new PEM and key.
Your OrgId is the account id shown when you click on your name in the top right corner in Apple Search Ads UI.
const asaApi = new AsaApi('<org-id>', new Certificate(
'<your-pem>.pem',
'<your-key>.key'
));
FAQs
Opinionated Apple Search Ads API client library for Javascript
The npm package apple-search-ads-js receives a total of 3 weekly downloads. As such, apple-search-ads-js popularity was classified as not popular.
We found that apple-search-ads-js 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.