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.
buffer-alpaca
Advanced tools
Readme
Buffer API library client for node.js
This library is generated by alpaca
Make sure you have npm installed.
$ npm install buffer-alpaca
Works with [ 0.8 / 0.9 / 0.10 / 0.11 ]
var buffer = require('buffer-alpaca');
// Then we instantiate a client (as shown below)
var client = buffer.client();
// If you need to send options
var client = buffer.client({}, options);
var client = buffer.client('1a2b3', options);
var client = buffer.client({
client_id: '09a8b7',
client_secret: '1a2b3'
}, options);
All the callbacks provided to an api call will recieve the response as shown below
client.klass('args').method('args', function (err, response) {
if (err) console.log(err);
response.body;
// >>> 'Hello world!'
response.code;
// >>> 200
response.headers;
// >>> {'content-type': 'text/html'}
}
response.body;
// >>> 'The username is pksunkara!'
response.body;
// >>> {'user': 'pksunkara'}
body = 'username=pksunkara';
body = {'user': 'pksunkara'};
The following options are available while instantiating a client:
The following options are available while calling a method of an api:
Returns api instance to get auxilary information about Buffer useful when creating your app.
var info = client.info();
Returns an object with the current configuration that Buffer is using, including supported services, their icons and the varying limits of character and schedules.
info.show(options, callback);
Returns authenticated user api instance.
var user = client.user();
Returns information about the authenticated user.
user.show(options, callback);
Returns an array of social media profiles connected to the authenticated users account.
user.profiles(options, callback);
Create one or more new status updates.
The following arguments are required:
user.createUpdate("This is an example update", [
"4eb854340acb04e870000010",
"4eb9276e0acb04bb81000067"
], options, callback);
Returns api instance to get information about links shared through Buffer.
var link = client.link();
Returns an object with a the numbers of shares a link has had using Buffer.
The following arguments are required:
link.shares("http://bufferapp.com", options, callback);
Returns a social media profile api instance.
The following arguments are required:
var profile = client.profile("519fc3ca4d5e93901900002f");
Returns details of the single specified social media profile.
profile.show(options, callback);
Returns an array of updates that are currently in the buffer for an individual social media profile.
profile.pending(options, callback);
Returns an array of updates that have been sent from the buffer for an individual social media profile.
profile.sent(options, callback);
Edit the order at which statuses for the specified social media profile will be sent out of the buffer.
The following arguments are required:
profile.reorder([
"4eb854340acb04e870000010",
"4eb9276e0acb04bb81000067",
"4eb2567e0ade04ba51000001"
], options, callback);
Randomize the order at which statuses for the specified social media profile will be sent out of the buffer.
profile.shuffle(options, callback);
Returns scheduling api instance for social media profile.
The following arguments are required:
var schedule = client.schedule("519fc3ca4d5e93901900002f");
Returns details of the posting schedules associated with a social media profile.
schedule.list(options, callback);
Set the posting schedules for the specified social media profile.
The following arguments are required:
schedule.update([
{
days: [
"mon",
"tue",
"thu"
],
times: [
"12:45",
"15:30",
"17:43"
]
}
], options, callback);
Returns a social media update api instance.
The following arguments are required:
var update = client.update("4eb8565e0acb04bb82000004");
Returns a single social media update.
update.show(options, callback);
Returns the detailed information on individual interactions with the social media update such as favorites, retweets and likes.
update.interactions(options, callback);
Edit an existing, individual status update.
The following arguments are required:
update.update("This is an edited update", options, callback);
Immediately shares a single pending update and recalculates times for updates remaining in the queue.
update.share(options, callback);
Permanently delete an existing status update.
update.destroy(options, callback);
Move an existing status update to the top of the queue and recalculate times for all updates in the queue. Returns the update with its new posting time.
update.top(options, callback);
Here is a list of [Contributors]((https://github.com/alpaca-api/buffer-node/contributors)
MIT
Report here.
Pavan Kumar Sunkara (pavan.sss1991@gmail.com)
FAQs
Buffer API library client for node.js
The npm package buffer-alpaca receives a total of 0 weekly downloads. As such, buffer-alpaca popularity was classified as not popular.
We found that buffer-alpaca 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.