LiquidPlanner Classic Forum

Ask a Question
Back to All

501 Errors Accessing Projects through API

(edited)

Posted on behalf of Shawn Joslyn. Original post date 2012-08-28.

Trying to create a high level management view into my LP projects using the LP API. I'm using the following code to connect and get a list of my projects. It works fine on Safari v6.0 (Mac). However, I'm getting 501 NOT IMPLEMENTED returned when I run the same code on Firefox 14.0.1 or Chrome 21.0.1180.82 (also on Mac). Seems strange that it works in Safari, but not the others. Hoping someone can suggest why this might be happening and how I can get it working.


$.ajax({
url: "https://app.liquidplanner.com/api/workspaces/:ID/projects",
datatype: 'json',
type: "GET",
status: status,
beforeSend: 
function(xhr) 
{
xhr.setRequestHeader("Authorization", "Basic BASE64XXX");

' I've also used xhr.setRequestHeader("X-API-Version", "3.0.0"); in addition to the Authorization above, but it doesn't seem to make a difference

}

Thanks.