Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Log in to my account

Alonso's Avatar

Alonso

08 Aug, 2017 11:36 PM

Hello

I am trying to use the api with nodejs but it is not connecting. Generate the token, it does not work.

This is my code:

var Vzaar = require('vzaar');

module.exports = {
get: function( request , response , next ) {
var api = new Vzaar.Api({ token: 'token', login: 'username' });
api.whoAmI(function(statusCode, data) {
response.status(200).send(data);
});
  }
 };

The message thrown at me by the api:

{"statusCode":401,"data":"{\"vzaar-api\":{\"error\":{\"type\":\"Not Authorized\"}}}"}

Thanks

  1. Alasdair Manson closed this discussion on 14 Aug, 2017 04:25 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac