Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var http = require('http');
- function getTestPersonaLoginCredentials(callback) {
- return http.get({
- host: 'terrenceko.com',
- path: '/playground'
- }, function(response) {
- // Continuously update stream with data
- var body = '';
- response.on('data', function(d) {
- body += d;
- });
- response.on('end', function() {
- // Data reception is done, do whatever with it!
- var parsed = JSON.parse(body);
- callback({
- email: parsed.email,
- password: parsed.pass
- });
- });
- });
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement