Skip to content

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

Notifications You must be signed in to change notification settings

torreycommerce/acenda-ruby-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages