
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
apple-search-ads-js
Advanced tools
Opinionated Apple Search Ads API client library for Javascript
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.