Skip to content

BranchLabs/magento_client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagentoClient

A Ruby interface to Magento's REST API

The main feature is automatic OAuth handshake with Magento - the OAuth access token is automatically fetched, so automated scripts can use Magento's REST API without needing any manual steps

Usage

magento = MagentoClient.new({
	:url => 'http://my_magento_store.com',
	:key => 'OAuth Consumer Key',
	:secret => 'OAuth Consumer Secret',
	:username => 'Magento Admin username',
	:password => 'Magento Admin password',
	:store_code => 'en' # Used for Magento stores with multiple store views on the same domain.
})

products = magento.get('/api/rest/products')

puts "Fetched #{products.count} products"

About

A Ruby interface to Magento's REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%