I hereby claim:
- I am brunobernardino on github.
- I am brunobernardino (https://keybase.io/brunobernardino) on keybase.
- I have a public key ASCV1iwLOfJXJPpHapEKwT9wF5v5hjoWwTG4KXAr35uC5go
To claim this, I am signing this object:
module.exports = function(context, cb) { | |
if (context.body) { | |
if (!context.body.email || !context.body.pass) { | |
return cb(401, 'Unauthorized'); | |
} | |
} else if (!context.headers['x-token']) { | |
return cb(403, 'Forbidden'); | |
} | |
const now = new Date(); |
module.exports = function(context, cb) { | |
if (!context.query.apiKey) { | |
return cb(401, 'Unauthorized'); | |
} | |
cb(null, { | |
authenticated: true, | |
user: 'Zapier', | |
}); | |
}; |
module.exports = function(context, cb) { | |
if (!context.headers['x-api-key']) { | |
return cb(401, 'Unauthorized'); | |
} | |
cb(null, { | |
authenticated: true, | |
user: 'user', | |
}); | |
}; |
'use strict'; | |
const finish = (cb, url) => { | |
console.log('Sending to', url); | |
cb(null, {url: url}); | |
} | |
exports.handler = (event, context, callback) => { | |
const defaultURL = 'http://example.com'; | |
I hereby claim:
To claim this, I am signing this object:
// This code has a break rate of < 10%. It's still unnacceptable, though. | |
var request = require( 'request' ).defaults( { jar: true } ), | |
q = require( 'q' ); | |
var URI = 'http://demo.visualcaptcha.net/'; | |
// Make a post | |
var makePost = function makePost( imgHash, partialURL, tryNumber ) { | |
var deferred = q.defer(), |