Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

linkshare-oauth2-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkshare-oauth2-api

  • 0.1.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= Linkshare

A Ruby implementation of the Rakutan Linkshare API's. This gem provides access to the following APIs:

Before You Begin

You will require an account with Linkshare, subscriptions to the API's and OAuth2 credentials which can be obtained by followng the instructions in the {Aquiring your Access Token}[https://developers.rakutenmarketing.com/console/registry/resource/_system/governance/apimgt/applicationdata/provider/RakutenMarketing/artifacts/API_Developer_Portal-Acquiring_Your_Access_Token_Guide.pdf] document

You will need the following peices of information:

  • AccountID (SID or MID)
  • Account Username
  • Account Password
  • Consumer Key
  • Consumer Secret
  • Security Token

Installation

To install linkshare, run the following command:

gem install linkshare-oauth2-api

Or if you are using bundler, add

gem 'linkshare-oauth2-api'

to your Gemfile, and run bundle install

Then add the following code to an initializer:

require 'linkshare' Linkshare.consumer_key = "#########################" Linkshare.consumer_secret = "#########################" Linkshare.sid = "1234567" Linkshare.username = "username" Linkshare.password = "password" Linkshare.security_token = "#############################################" Linkshare.custom_report_token = "##################################################################################"

Usage Examples

require 'linkshare'

Coupons API

coupn = Linkshare.coupon coupn.fetch coupn.getCoupons

...

merchants = Linkshare.linklocator.getMerchByAppStatus(:approved)

...

Advanced Reports API

report = Linkshare.advancedreports.fetchReports(6, '20150101', '20160101')

...

Custom Reports API

report = Linkshare.customreports.fetchReports('custom-report-name', '2016-01-27', '2016-01-27', 5)

...

Product Search API

products = Linkshare.productsearch products.addKeyword('Toy','keyword') products.getProducts

...

Events API

events = Linkshare.events.getEvents

...

Advertiser Search API

advertiser = Linkshare.advertisersearch.getAdvertisers ("Example Store")

FAQs

Package last updated on 26 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc