Podiojs
Thin nodejs wrapper around the Podio API
Install / Use
/learn @haugstrup/PodiojsREADME
Podio API Client Library for nodejs
This is a thin wrapper around the Podio API for nodejs. It handles authentication and maintains access/refresh tokens for you. It is also my first nodejs project so comments and pull requests are welcome.
Usage
// Initialize and specify client id and secret
var podio = require('podiojs');
podio.client.client_id = 'CLIENT_ID';
podio.client.client_secret = 'CLIENT_SECRET';
podio.on('error', function(request, response, body) {
console.log('There was a problem with a request to ' + request.path+'. Error was "'+body.error_description+'" ('+body.error+')');
});
podio.on('rateLimitError', function(request, response, body) {
console.log('You hit the rate limit');
});
podio.authenticate('password', {'username': 'USERNAME', 'password': 'PASSWORD'}, function(response, body){
podio.get('/user/status', {}, function(response, body){
console.log(body);
});
});
Install
npm install git://github.com/haugstrup/podiojs.git
Methods
podio.authenticate(grant_type, attributes, [callback])
podio.request(method, url, attributes, [options], [callback])
podio.get(url, attributes, [options], [callback])
podio.post(url, attributes, [options], [callback])
podio.put(url, attributes, [options], [callback])
Callback receives two arguments: response (ClientResponse object) and body (JSON object of the HTTP body)
TODO
- Handle gzip/deflate
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
