Project

zanox_api

0.0
No commit activity in last 3 years
No release in over 3 years
Simple client for zanox SOAP API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0
 Project Readme

Zanox API Client Build Status

This gem wraps a savon client to provide easy access to the Zanox API.

Installation

$ gem install zanox_api

Or, in your Gemfile:

gem 'zanox_api', '~> 0.2.0'

Example Usage

require 'zanox_api'

# There are multiple clients available, one for each service Zanox provides:
#  - PublisherClient
#  - DataClient
#  - ConnectClient
client = Zanox::API::PublisherClient.new(connect_id: 'XXX', secret_key: 'xxx')

# To use methods which require authentication you must use the "authenticated_" prefix
puts client.authenticated_get_sales(date: Date.today).inspect

# You can use just the method name for methods which doesn't require it
puts client.search_programs.inspect

# Parameters are passed to the soap message
puts client.authenticated_get_sale(id: "xx").inspect