Coder Social home page Coder Social logo

node-ipboard's Introduction

#IpBoard

A client library for making XML RPC requests to ipboard with Node.js.

##Usage

var ipboard = require('ipboard');

var client = new ipboard({
  encoding: 'utf8',
  api_key: 'yoursecretkey',
  host: 'yourawesomeforum.com',
  port: 80,
  path:'/community/interface/board/index.php' //Only need to set if different from standard /interface/board/index.php
});

client.fetchTopics({
  forum_ids: '16',
  order_field: 'post_date',
  order_by: 'desc',
  offset: '0',
  limit: '10',
  view_as_guest: false
}, function(err, results){
  //Good job!
});

##Methods Available

For complete IP.Board API info visit: http://www.invisionpower.com/support/guides/_/advanced-and-developers/api-methods/xml-rpc-api-r62

postTopic(options, cb)

Params:

options = {
    member_field: String,
    member_key  : String,
    forum_id    : String,
    topic_title : String,
    post_content: String
  }

postReply(options, cb)

Params:

options = {
  member_field: String,
  member_key  : String,
  topic_id    : String,
  post_content: String
}

fetchMember(options, cb)

Params:

options = {
  search_type   : String,
  search_string : String
}

checkMemberExists(options, cb)

Params:

options = {
  search_type   : String,
  search_string : String
}

fetchOnlineUsers(cb)

Params: None

fetchForumsOptionList(cb)

Params: None

fetchForums(options, cb)

Params:

options = {
  forum_ids: String // comma separated list
}

fetchTopics(options, cb)

Params:

options = {
  forum_ids: String, // comma separated list
  order_field: String,
  order_by: String, // asc|desc
  offset: Number,
  limit: Number,
  view_as_guest: Number // 0 for false, 1 for true
}

fetchStats(cb)

Params: None

helloBoard(cb)

Params: None

customFunction(functionName, options, cb)

Params:

functionName = 'the string of the function name you created'
options = {
  //Whatever options you should be passing
}

##License MIT


#####Made with love by @taterbase

node-ipboard's People

Contributors

taterbase avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.