
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
linkshare-oauth2-api
Advanced tools
= Linkshare
A Ruby implementation of the Rakutan Linkshare API's. This gem provides access to the following APIs:
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:
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 = "##################################################################################"
require 'linkshare'
coupn = Linkshare.coupon coupn.fetch coupn.getCoupons
...
merchants = Linkshare.linklocator.getMerchByAppStatus(:approved)
...
report = Linkshare.advancedreports.fetchReports(6, '20150101', '20160101')
...
report = Linkshare.customreports.fetchReports('custom-report-name', '2016-01-27', '2016-01-27', 5)
...
products = Linkshare.productsearch products.addKeyword('Toy','keyword') products.getProducts
...
events = Linkshare.events.getEvents
...
advertiser = Linkshare.advertisersearch.getAdvertisers ("Example Store")
FAQs
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.