Diglin\Ricardo\Api
Class Api
Prepare HTTP headers, send params, connect and get response from the API
Synopsis
- // members
- protected ConfigInterface $_config;
- protected $_username;
- protected $_partnerKey;
- protected bool $_debug;
- protected $_lastDebug;
- protected bool $_shouldSetPass;
- // methods
- public void __construct()
- public mixed connect()
- protected array _addHeaders()
- public Config getConfig()
- public $this setUsername()
- public mixed getUsername()
- public $this setShouldSetPass()
- public boolean getShouldSetPass()
- public array getLastDebug()
- public string revertUsername()
- public bool removePictureBytesData()
Hierarchy
Implements
Members
protected
- $_config — Diglin\Ricardo\Core\ConfigInterface
- $_debug — Diglin\Ricardo\bool
- $_lastDebug — array
- $_partnerKey — string
- $_shouldSetPass — Diglin\Ricardo\bool
- $_username — string
Methods
protected
- _addHeaders() — Set correct HTTP headers for the API
public
- __construct()
- connect() — Connect to the Ricardo API depending of the service and method to be used
- getConfig() — Get the configuration class of the API
- getLastDebug() — Get the content of the headers and content of one or more API calls
- getShouldSetPass() — Get if the pass should be send or not
- getUsername() — Get the username
- removePictureBytesData()
- revertUsername() — The username can be a token or the partner ID.
- setShouldSetPass() — Set if the pass should be send or not
- setUsername() — Username is in fact the API key but we call it username to be homogeneous with the header naming convention
History
-
2014-11-29T21:35:16+01:00 (commit #b245fb0)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Remove PictureBytes when debug data is returned. Prevent problems
-
2014-10-21T02:08:42+02:00 (commit #1b5577c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Anonymize username and password for log and debug for future use
-
2014-10-20T13:39:26+02:00 (commit #177d730)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
update
-
2014-10-06T14:17:38+02:00 (commit #bf96f34)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Change Partner ID to Partner Key to keep ricardo terminology
-
2014-09-28T11:22:59+02:00 (commit #3e11a2c)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Update the License to OSL v3.0, add license file, change code header and composer.json
-
2014-08-31T21:01:48+02:00 (commit #72cadb7)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Add curl exception in case of connection problem
-
2014-08-10T20:18:28+02:00 (commit #fc0e52a)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Standardize namespace use
-
2014-08-09T12:47:21+02:00 (commit #f472deb)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
[RIC-38] Implements getSellerPackages Service
-
2014-07-01T13:49:07+02:00 (commit #37b2bde)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Add test for Helper, add to the helper a method to convert in both directions date from/to json/php, add the Ricardo Service System and its test (still in progress), improve information of error curl message, add method into the testAbstract to get the latest api debug
-
2014-06-22T17:08:27+02:00 (commit #61fc8b6)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
Add PhpUnit Tests for Security, SellerAccount (in progress) and System (in progress) Services. Add a way to configure the unit test, documentation exist to configure it thanks to a readme file Implement the security protocol at the manager level
-
2014-06-15T22:30:44+02:00 (commit #6b76b24)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
change folders structure, add script specific for Magento to allow to install the library into it
-
2014-06-15T13:58:22+02:00 (commit #e3161ff)
Author: Sylvain Rayé (sly@diglin.com) / Commiter: Sylvain Rayé (sly@diglin.com)
init commit