Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

singly

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

singly - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

lib.js
var request = require('request');
var querystring = require('querystring');
var apiBaseUrl = 'https://api.singly.com';
var apiBaseUrl = process.env.SINGLY_API_HOST || 'https://api.singly.com';
var API_VERSION = 0;

@@ -6,0 +6,0 @@

@@ -5,3 +5,3 @@ {

"description": "Client library for the Singly API",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "http://dev.singly.com",

@@ -8,0 +8,0 @@ "main" : "lib.js",

@@ -36,3 +36,3 @@ var Singly = require('./lib');

qs.access_token = accessToken;
singly.post('/types/statuses', {qs:req.query}, function(err, resp, body) {
singly.post('/types/statuses', {qs:qs}, function(err, resp, body) {
if (err) return res.send(err, 500);

@@ -43,3 +43,14 @@ res.send(body);

app.post('/link', function(req, res) {
if (!accessToken) return res.send('must auth at http://localhost:8044/', 401);
var qs = req.query;
qs.access_token = accessToken;
singly.post('/types/links', {qs:qs}, function(err, resp, body) {
if (err) return res.send(err, 500);
res.send(body);
});
});
app.listen(8044);
console.log('open http://localhost:8044');
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc