linkshare-oauth2-api 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83fc73fc45f02f459b6f0bf9278c483aae7eea76
4
- data.tar.gz: 33078867327c670a50ae323400d54c89681d174a
3
+ metadata.gz: aac148207bf1393583c7c27460a1af0e021d11e5
4
+ data.tar.gz: c05c25103577df3ea1ce951202a3bb7ff2b8d9c7
5
5
  SHA512:
6
- metadata.gz: e0975a6103cf2e07bc9f5c92c236bfea010d6c8d8a9681dc8980efa888e11756b7d6c59a128cb7d069a4024236062b0f8d9ed64ea4463ccec027558dbb67b024
7
- data.tar.gz: c828007bf369e654f733b6f2ad88079fec8821514313806d081631011cc3ac0643bc9767d33f946817f1ed8a34243345494997a6b1087fd2680744aba4459ee8
6
+ metadata.gz: 96b5385aa09d3266e367baad1ac719bd88b4bfe97382da48f86f6e47168f492fdb90fe54ab197040d4a291a919f02edbc6b29192c18b485310643a52d9e388a5
7
+ data.tar.gz: 3db764a1ab48bb1b3d882312edba0453fc61bd738ca36448ab14068617f9b2515622339e4b2bc91804ea7613a8ddc08e590ef0c00253b0c40366bc77db1e683b
@@ -27,13 +27,13 @@ You will need the following peices of information:
27
27
  To install **linkshare**, run the following command:
28
28
 
29
29
 
30
- gem install linkshare-ouath2-api
30
+ gem install linkshare-oauth2-api
31
31
 
32
32
 
33
33
  Or if you are using **bundler**, add
34
34
 
35
35
 
36
- gem 'linkshare-ouath2-api'
36
+ gem 'linkshare-oauth2-api'
37
37
 
38
38
 
39
39
  to your `Gemfile`, and run `bundle install`
@@ -47,6 +47,7 @@ Then add the following code to an initializer:
47
47
  Linkshare.username = "username"
48
48
  Linkshare.password = "password"
49
49
  Linkshare.security_token = "#############################################"
50
+ Linkshare.custom_report_token = "##################################################################################"
50
51
 
51
52
 
52
53
  ## Usage Examples
@@ -71,6 +72,11 @@ Then add the following code to an initializer:
71
72
 
72
73
  ...
73
74
 
75
+ # Custom Reports API
76
+ report = Linkshare.customreports.fetchReports('custom-report-name', '2016-01-27', '2016-01-27', 5)
77
+
78
+ ...
79
+
74
80
  # Product Search API
75
81
  products = Linkshare.productsearch
76
82
  products.addKeyword('Toy','keyword')
@@ -19,7 +19,7 @@ module Linkshare
19
19
  @reportsRows = []
20
20
  @reportsCSV = open(url).read()
21
21
  reportsrows = @reportsCSV.force_encoding("UTF-8").gsub("\"",'').split(/\n/)
22
- if reportsrows[1].match(/^\{code\:.*\}$/)
22
+ if !reportsrows[1].nil? && reportsrows[1].match(/^\{code\:.*\}$/)
23
23
  raise 'Linkshare Error (custom report): ' + reportsrows[1]
24
24
  end
25
25
  @cols = reportsrows[0].split(/,/)
@@ -1,3 +1,3 @@
1
1
  module Linkshare
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkshare-oauth2-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rudie Shahinian