Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
cheezburger
Advanced tools
A module for interfacing with the cheezburger api
Add cheezburger to your package.json
npm install --save cheezburger
Require & Instantiate a Cheezburger instance with your access token
var Cheezburger = require('cheezburger')
var cheezburger = new Cheezburger({ access_token : "<your access token>"})
You can now make cheezburger calls:
cheezburger.ohai("Hello Ohai",function(err,response){ console.log(response) })
All responses are javascript objects with an items
key containing an array of responses. If pagination is available, it will be returned as page
and page_size
keys.
Returns an object with an items key. The first item is the response.
Returns an object with an items key. The first item is the requested asset.
Accepts the following options (or you can pass a file in place of options to accept all defaults):
Returns an object with an items key. The first item is the posted asset info.
Returns an object with an items key. Each item is an asset type.
Returns an object with an items key. Each item is a site type.
Returns an object with an items key. The first item is the user belonging to the access token.
Returns an object with an items key. The first item is the user belonging to the specified id.
Returns an object with an items key. The first item is the user belonging to the access token.
If called with an object, accepts the following arguments:
If called with an id as the first argument, will return the specified site.
If called with mine
or my
as the first argument, will return the logged in users' sites.
This endpoint may return more than 10 items. If it does, paging info will also be returned.
Returns an object with an items key. Each Item is a site.
If called without options, returns up to the first 10 sites for the current user.
Returns an object with an items key. Each item is a site belonging to the logged in user.
Meta method for calling other methods with paging info. The only methods that will return paged info are sites
and mysites
.
Call curried with page, pageSize, and method - the other arguments are the same as the method specified. For instance, to call requesting sites:
cheezburger.page(2,25,'sites','mine',function(err,obj){
// obj.items is now an array of the 2nd page (25 per page) of my own sites.
})
You can use cheezburger without an access token by instantiating with a client id and secret:
var cheezburger = new Cheezburger({ id : "<your client id>", secret : "<your client secret>" })
Cheezburger will automatically try to generate a token when you call the api.
Note that any user specific API endpoints will not work unless a user has logged in (see next section)
If using without an initial access_token, you can generate a url to send the user to.
Instantiate the Cheezburger API with your client_id:
var cheezburger = new Cheezburger({ id : "<your client id>" })
Then when prompting your user to authorize your app, redirect them to:
cheezburger.authUrl("http://yoursite.com/auth/success/handler")
where the passed url is where you want cheezburger to redirect back with the access token or error.
The redirected request will contain JSON with an access_token key. When you have that, set the access token on cheezburger to use the rest of the API:
cheezburger.setAccessToken(response.access_token)
Reference for the cheezburger api is located here: https://developer.cheezburger.com/docs/
Please file any bugs in the github issue tracker for this repo.
You can also contact me on twitter: @jesseditson
FAQs
A module for interfacing with the cheezburger api
We found that cheezburger 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.