You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

PBCS REST APIs using JavaScript

edited Jul 4, 2017 7:53AM in Planning 2 comments

Summary

PBCS REST APIs using JavaScript

Content

Hey everyone,

Has anyone tried using PBCS Rest APIs using JavaScript? I know we can use Groovy, PBJ, Java etc. But I am more interested in knowing more about working with JavaScript. If there are any documents, blogs or links regarding the JavaScript and PBCS Rest APIs that would be great. If there are any working models that will be really helpful.

In my code, I have provided the Authentication header and yet I am getting the error 

401 (Authorization Required)

This is what I have in my java script.

$( "#login" ).click(function() {

    var xhr = new XMLHttpRequest();

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!