Giter VIP home page Giter VIP logo

mixi-ruby's Introduction

#
# Ruby用 mixiライブラリ
#
# Copyright (c) 2009 - 2010 Kunio Murasawa <[email protected]>
#

名前
 mixi.rb

作者
 Kunio Murasawa <[email protected]>

対応機能
 - 初期化
  - initialize(user, pass, use_ssl)

 - ログイン
  - login

 - ボイス
  - 発言
   - add_echo(message)

  - 返信
   - reply_echo(message, member_id, post_time)

  - 削除
   - delete_echo(post_time)

  - 返信削除
   - delete_response(member_id, post_time, comment_member_id, comment_post_time)

  - マイミクボイス取得
   - recent_echo

  - 指定ユーザボイス取得
   - list_echo(member_id = nil)
    - member_idを省略した場合は自分のボイス

  - 公開範囲設定
   - edit_account_echo(level)

 - 新着情報取得
  - updates(member_id, type = nil)
   - member_idを省略した場合は自分の情報
   - typeを省略した場合は全て

 - マイミク情報取得
  - friends(member_id)
   - member_idを省略した場合は自分の情報

 - 足跡情報取得
  - tracks(member_id)
   - member_idを省略した場合は自分の情報

取得方法
 $ git clone git://github.com/m92o/mixi-ruby.git mixi-ruby

使い方
 # ライブラリ読み込み
 require 'mixi/mixi'

 # 初期化
 mixi = Mixi.new(user, pass, true)

 # ログイン
 mixi.login

 # 発言
 mixi.add_echo("メッセージ")

 # 返信
 mixi.reply_echo("返信メッセージ", member_id, post_time)

 # 削除
 mixi.delete_echo(post_time)

 # 返信削除
 mixi,delete_response(member_id, post_time, comment_member_id, comment_post_time)

 # マイミクボイス取得
 voices = mixi.recent_echo

 # 指定ユーザボイス取得
 voices = list_echo

 # 公開範囲設定
 mixi.edit_account_echo(Mixi::LEVEL_ALL)

 # 新着情報取得
 updates = mixi.updates(member_id, Mixi::UPDATE_DIARY)

 # マイミク情報取得
 friends = mixi.friends

 # 足跡情報取得
 tracks = mixi.tracks

ライセンス
 BSDライセンス
 詳細は附属のLICENCEファイルを参照

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.