No commit activity in last 3 years
No release in over 3 years
Example of a basic api client that keeps access-token headers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0
>= 0
 Project Readme

Instalation

gem install basic_api_client

Usage

require 'basic_api_client'

client = BasicApiClient.new("user.cn", "userpassword", "http://example.com", "/api/v1/auth/sign_in")

client.authorize
#=> Returns a Hash with user data if success, else nil

client.get('/api/v1/users')
#=> Returns a Hash with user data if success, else nil