Last active
August 29, 2015 14:02
-
-
Save rkaneko/466f70494ef166746b31 to your computer and use it in GitHub Desktop.
kintone REST API sample.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
"use strict"; | |
kintone.events.on('app.record.index.show', function(event) { | |
var fields = ['レコード番号', '作成者', 'Some_field_id']; | |
var query = "some_query"; | |
var params = { | |
fields: fields, | |
app: event.appId | |
}; | |
var url = '/k/v1/records'; | |
// get all records | |
kintone.api( | |
url, | |
'GET', | |
params, | |
function (e) { | |
console.log("success handler."); | |
console.dir(e); | |
// records is e.records | |
}, | |
function (e) { | |
console.log("error handler."); | |
console.dir(e); | |
} | |
); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment