{"repo":"php-twinfield/twinfield","free":true,"listed":false,"github":"https://github.com/php-twinfield/twinfield","clone":"git clone https://github.com/php-twinfield/twinfield.git","description":"PHP 7.3+ Library for using the Twinfield API.","language":"PHP","stars":33,"topics":["php","twinfield","accounting","api-client"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Twinfield A PHP library for Twinfield Integration. Use the Twinfield SOAP Services to have your PHP application communicate directly with your Twinfield account. :warning: Note that this library is not created or maintained by Twinfield. You can only get support on the code in this library here. For any questions related to your Twinfield administration or how to do certain things with the Twinfield API, contact your Twinfield account manager. Installation Install this Twinfield PHP library with Composer: Usage Authentication You need to set up a \\PhpTwinfield\\Secure\\AuthenticatedConnection class with your credentials. When using basic username and password authentication, the \\PhpTwinfield\\Secure\\WebservicesAuthentication class should be used, as follows: Username and password Some endpoints allow you to filter on the Office, but for instance the BrowseData endpoint doesn't. For this you need to switch to the correct office before making the request, you can do this after authentication like so: oAuth2 In order to use OAuth2 to authenticate with Twinfield, one should use the \\PhpTwinfield\\Secure\\Provider\\OAuthProvider to retrieve an \\League\\OAuth2\\Client\\Token\\AccessToken object, and extract the refresh token from this object. Furthermore, it is required to set up a default \\PhpTwinfield\\Office , that will be used during requests to Twinfield. Please note: when a different office is specified when sending a request through one of the ApiConnectors , this Office will override","default_branch":null,"files":null,"tree":[],"storefront":"/r/php-twinfield","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/php-twinfield/twinfield/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}