New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodio

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodio

A NodeJS client for accessing the Podio API using the App authentication flow.

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Nodio

A node.js client for accessing the Podio API using the App authentication flow (https://developers.podio.com/authentication/app_auth).

Usage


// Your podio app and client credentials (obtained in the app's dev section and in https://developers.podio.com/api-key, respectively)
var credentials = {
    app_id: 'YOUR_APP_ID',
    app_token: 'YOUR_APP_TOKEN',
    client_id: 'YOUR_CLIENT_ID',
    client_secret: 'YOUR_CLIENT_TOKEN'
};

var nodio = require('nodio')(credentials);

// The item you want to push to Podio (fields defined in the respective app)
var item = {
    arbitrary_field_name: 'some text',
    magic_number: 142857,
    something_else: 'I love Celeste'
};

nodio.addNewItem(item, function(err, item_info){
    if(err){
        // Error
        console.log(err);
    }
    else{
        // Item added successfully, here's the item's relevant information
        var item_id = item_info.item_id;
        var title = item_info.title;

        console.log(item_id+" - "+title);
    }
});

// Podio item id, obtained from an app item's dev section
var item_id = APP_ITEM_ID;

nodio.getItem(item_id, function (err, item_info) {
    if(err){
        // Error
        console.log(err);
    }
    else{
        // Item retrieved successfully
        var item_id = item_info.item_id;
        var title = item_info.title;

        console.log(item_id+" - "+title);
    }
});


Install

npm install nodio

Methods

nodio.AddNewItem(credentials, item, callback);

Callback receives two arguments: (err, item_info)

To do

Lots of stuff, this is only one API operation, please help me! Fork me!

Credits

Written by Andrés Gottlieb (agottlieb@gmail.com).

(c) 2012 Andrés Gottlieb. Licensed under the MIT license.

Keywords

FAQs

Package last updated on 01 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc