planbox / planbox_api_sandbox Goto Github PK
View Code? Open in Web Editor NEWSingle Application Sandbox for Planbox API
Home Page: www.planbox.com/api
Single Application Sandbox for Planbox API
Home Page: www.planbox.com/api
PLANBOX API SANDBOX ------------------- A single-page-application you can load in your Browser to access the Planbox API. Calls the Planbox REST API using JSONP (jQuery's getJSON) to avoid cross domain issues. REQUIREMENTS - A Planbox account. You can get one for Free here: https://www.planbox.com/signup/pricing. - A Web Browser like Firefox or Chrome. HOW TO USE? - Load the planbox_api_sandbox.html file in your favorite Web Browser. - Log in to Planbox (if not already). - Comes with 3 buttons to call the API and dump a report: - My Products: Loads all your initiatives - My Projects: Loads all projects across all your initiatives - My Stories: Loads all stories across all your initiatives WHAT CAN I DO WITH THIS? - Learn how to use the Planbox API - Develop your own SCRUM User Interface (using the Planbox engine and database) - Create custom reports and functionality - Create yourself dashboard - Create a Kanban board HOW TO CUSTOMIZE? - Edit the planbox_api_sandbox.html file with your favorite editor. - Modify the second inline <SCRIPT> tag to add your own functions. - Use the helper function Planbox.api to call Planbox. - Use jQuery to handle DOM elements. Author: Martin Drapeau Copyright 2009-2012 Planbox Inc. License: MIT License (http://en.wikipedia.org/wiki/MIT_License)
I was wondering if you could provide an example jQuery snippet that would be used to grab the products. I've been fiddling with the code in this repo, my own version of it as well as cURLing the the API and I can't seem to come up with the magical combination of access_token, username, password, email, GET/POST, etc.
Here is the closest thing I can (taken from this repo)
window.Planbox = {
// Url to Planbox. You can use https if you like.
base_url: 'https://acceess_token_as_username:[email protected]/',
// Call the Planbox API
api: function(fname, args, onsuccess, onerror) {
var url = Planbox.base_url+'api/'+fname+'?callback=?';
args = args || {};
//args = { product_id: "123456778", email: "[email protected]" };
return $.post(url, args, function(data) {
if (data && data.code == 'ok') {
if (onsuccess) onsuccess(data.content);
} else if (data && data.code == 'error') {
if (onerror) onerror(data.content);
} else {
if (onerror) onerror('Cannot reach Planbox');
}
}, "json");
},
I'm just very confused about the using POST when the intention is to return data and not submit anything. Any clarification would be amazing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.