PHPackages                             nmrkt/linkshare - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nmrkt/linkshare

ActiveLibrary[API Development](/categories/api)

nmrkt/linkshare
===============

A guzzle client for consuming the Linkshare API

418.5k3PHP

Since Sep 3Pushed 10y ago3 watchersCompare

[ Source](https://github.com/NMRKT/linkshare)[ Packagist](https://packagist.org/packages/nmrkt/linkshare)[ RSS](/packages/nmrkt-linkshare/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Linkshare Client
====================

[](#php-linkshare-client)

[![Build Status](https://camo.githubusercontent.com/4343875280ad5bbb5c97be668bc2b3ea337ac0c2f2314600ffac3b10be4565c0/68747470733a2f2f7472617669732d63692e6f72672f4e4d524b542f6c696e6b73686172652e737667)](https://travis-ci.org/NMRKT/linkshare)

A Guzzle client for consuming the Linkshare API

How it works
------------

[](#how-it-works)

This library uses the OAuth Plugin:  to subscribe to Guzzle Client calls and ensures that your client requests have the correct "Authorization" headers.

Currently there is only a client built for the [*events* API](https://developers.rakutenmarketing.com/subscribe/apis/info?name=Events&version=1.0&provider=LinkShare). Open to pull requests if anyone wants to tackle the Advanced Reports, Coupon, Product Search, etc. endpoints.

**VERY IMPORTANT TO SET 'grant\_type' =&gt; 'password' IN YOUR CONFIG - Otherwise the OAuth Plugin will set it as 'client\_credentials' and Linkshare won't know what that means.**

You can find your `client_id` and your `client_secret` here, by clicking the 'show keys' button:

Usage
-----

[](#usage)

```
