![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.
npm install mixcloud
A work-in-progress Mixcloud API Client. We welcome pull requests to implement additional features.
At present, features in this client are being developed as to that which NTSLive.co.uk (the project sponsor) are requiring. At present, those features are:
GET /<user>/cloudcasts
)GET /<user>/<cloudcast_key>
)var mixcloud = require('mixcloud');
All methods throw either an Error in the case of bad options, or, return a promise that is either resolved or rejected.
A pagination object is an object with two methods next
and previous
, these
can be null if it is not possible to paginate past the current point. Calling
either next
or previous
will result in a new response Promise.
In the case that Mixcloud rate limit your access, the promise will be rejected with an Error
object with the following setup:
{
name: "RateLimited",
message: "<some rate limit message>",
payload: {
retry_after: <number of seconds>,
retry: Function
}
}
For example, to handle errors, you might write some code that looks like:
mixcloud.cloudcasts('ntsradio').then(handleSuccess, handleError);
function handleError(error) {
if(error.name === "RateLimited"){
setTimeout(function(){
error.payload.retry().then(handleSuccess, handleError);
}, error.payload.retry_after * 1000);
return;
}
// Handle other errors
}
}
// Fetch ntsradio's cloudcasts with the default limits and pagination
promise = mixcloud.cloudcasts('ntsradio')
// Fetch ntsradio's cloudcasts, but limit to 100 results per page (maximum)
promise = mixcloud.cloudcasts('ntsradio', { limit: 100 })
// Fetch ntsradio's cloudcasts since a given date (July 1st at midnight)
promise = mixcloud.cloudcasts('ntsradio', { since: new Date(2014, 06, 01, 00, 00, 00) })
// Fetch ntsradio's cloudcasts until a given date
promise = mixcloud.cloudcasts('ntsradio', { until: new Date(2014, 06, 01, 00, 00, 00) })
In the above promise
should resolve to an object where the results are on the
results
key, with a Pagination Object at the pagination
key.
promise = mixcloud.cloudcast('/NTSRadio/knee-deep-26th-august-2014/')
// OR
promise = mixcloud.cloudcast('NTSRadio', 'knee-deep-26th-august-2014')
FAQs
Client for the Mixcloud API
The npm package mixcloud receives a total of 1 weekly downloads. As such, mixcloud popularity was classified as not popular.
We found that mixcloud 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.