0.0
No commit activity in last 3 years
No release in over 3 years
HTTP dialog for the Acenda API with the oAuth2 authentication.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Runtime

>= 1.8.2, ~> 1.8
 Project Readme

Acenda API client

enter image description here

Acenda website: Acenda

Homepage: Git repository

Author: Acenda development Team

Gem Version


Description

The Acenda API Ruby Client makes it very easy to manage oAuth2 authentication process and REST API query.

Note:

  • This client is in Alpha and doesn't have all the features needed *

Install

Be sure https://rubygems.org/ is in your gem sources. For normal client usage, this is sufficient:

$ gem install acenda-client

Example

require 'acenda-client'

# Initalization of the API client with your credentials
cli = Acenda::API.new(_CLIENT_ID_, _CLIENT_SECRET_, _STORE_URL_)

# Basic case of querying with syntax system and sorting
response = cli.query('GET', '/product', {
	:query => 'brand:{$exists:1}'
	:sort => 'id:1'
})

# Display of the results in JSON
puts response.get_result().to_json # [{}]
puts response.get_code() # 200
puts response.get_status() # OK
puts response.get_url() # Your complete URL and URI
puts response.get_params().to_json # {"query": "brand:{$exists:1}", "sort": "id:1"}
puts response.get_number() # 0

Support

Please report bugs on the issue manager of the project on GitHub. A forum will soon be open to answer questions.

enter image description here