šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

glue

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glue

1.1.1
Rubygems
Version published
Maintainers
1
Created
Source

= glue

http://GlueNow.com

== DESCRIPTION:

The Glue gem enables posting to GlueNow.com API service using an account subdomain, username, password. In this version you can add a post by providing a title and body. You can access some basic info about a users account and check if their account info is valid and request public posts from an account using the same RSS that powers many of the Glue feeds.

== FEATURES/PROBLEMS:

Adding new posts requires Title & Body text Access info about an account with successful login: * Email Address * If they are an admin * Their Author Name Check a subdomain is valid and belongs to an account Read all public posts Gem is thoroughly tested Only allows Adding & Reading posts at this time You can't edit or delete posts

== SYNOPSIS:

TO ADD A POST USING THE GLUENOW.COM API

  • Instantiate your account - Provide subdomain, username and password of http://Your-Subdomain.GlueNow.com Account

    account = Glue::API.new("your-subdomain", "your-username", "your-password")

  • Check if the account subdomain is valid

    account.valid_site?

  • Get more info about the user's account

    user = account.user_info

    user #=> {"rsp"=>{"user"=>{"author"=>"Jordan Dobson","admin"=>"true","email"=>"jordandobson@gmail.com"},"stat"=>"ok"}}

  • Post Your Content - Title & Body are required

    response = account.post("My Title", "Body Text")

  • Receive a Success or Error Hash

    SUCCESS

    response #=> {"rsp"=>{"post"=>{"title"=>"My Title","url"=>"http://bit.ly/sakIM","id"=>"14415","longurl"=>"http://jordandobson.com"},"stat"=>"ok"}}

    ERROR

    response #=> {}

TO READ POSTS USING GLUENOW.COM RSS

== REQUIREMENTS:

HTTParty

== INSTALL:

sudo gem install glue

== LICENSE:

(The MIT License)

Copyright (c) 2009 Squad, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

FAQs

Package last updated on 29 Jan 2010

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