Skip to content

patrick-melo/magento-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Simple client to call the Magento 2 API.

require_once '/Users/patrickmelo/eclipse-workspace/magento-client/src/Magento/Client.php';
// REPLACE WITH YOUR ACTUAL DATA OBTAINED WHILE CREATING NEW INTEGRATION
$client = new Magento\Client([
    'origin'              => 'http://localhost',
    'consumer_key'        => 'htj8ze6ntr0mz1s4hjxrqeicia8rxgt4',
    'consumer_secret'     => 'djjzdwfgbbr7ganlkv01qr6p3l7ptvfe',
    'access_token'        => '60o0mfrvqnjvin7tjuqsv37arijrqe9e',
    'access_token_secret' => 'caq9wfdx99zaygwgbhw91i9imj89p4zb',
]);
var_dump($client->getProducts(null, 10, 1));

About

Client for communicating with the Magento2 API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages