linkemperor-api 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -220,12 +220,13 @@ class LinkemperorCustomer
|
|
220
220
|
# - how_pay: How to pay for the Order. 'cash' to generate an invoice that will be settled against your account on file, or 'credits' to pull from the pool of existing credits in your account.
|
221
221
|
# - callback_url: The URL to notify when the status of the Order is updated. This occurs when component Blasts either succeed (and URLs are available for viewing) or fail (and replacement Blasts have been ordered.)
|
222
222
|
# - custom: You may provide any string here. We will save it as part of the Order and include it in the returned data whenever you check on an Order's status. It's great for holding your internal ID number for the Order.
|
223
|
+
# - special_requirements: Special requirements
|
223
224
|
# - requests: This is where the actual object describing your order goes. This is either a JSON nested array or XML nested tags (depending on your current format). The schema for this field is described below in the section titled Schema Used In Your Request.
|
224
|
-
def create_order(requests, how_pay = nil, callback_url = nil, custom = nil)
|
225
|
+
def create_order(requests, how_pay = nil, callback_url = nil, custom = nil, special_requirements = nil)
|
225
226
|
if requests.nil?
|
226
227
|
raise LinkemperorApiException.new('requests should not be empty')
|
227
228
|
end
|
228
|
-
parameters = {'order' => {'how_pay' => how_pay, 'callback_url' => callback_url, 'custom' => custom, 'requests' => requests}}
|
229
|
+
parameters = {'order' => {'how_pay' => how_pay, 'callback_url' => callback_url, 'custom' => custom, 'special_requirements' => special_requirements, 'requests' => requests}}
|
229
230
|
exec_post(parameters, 'post', "#{@base_path}/api/v2/customers/orders.json?api_key=#{@api_key}")
|
230
231
|
end
|
231
232
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
require 'net/http'
|
2
3
|
require 'uri'
|
3
4
|
require 'json'
|
@@ -97,6 +98,9 @@ class LinkemperorVendor
|
|
97
98
|
# After we receive this submission, we will verify the links provided within 24 hours.
|
98
99
|
# Once the links prove to be valid, we will credit your account immediately. If we cannot
|
99
100
|
# find enough valid backlinks in the links that you provided, we will suspend payment pending a manual review.
|
101
|
+
#
|
102
|
+
# If you are required to provide login information for the built urls,
|
103
|
+
# provide it in the url itself using the following format: http://user:password@domain.com/path
|
100
104
|
# Parameters:
|
101
105
|
# - id: ID # of the Blast
|
102
106
|
# - links: A string containing the list of links to submit (newline delimited)
|
@@ -144,6 +148,8 @@ class LinkemperorVendor
|
|
144
148
|
# Creates a test blast for your Service. It will not affect your score or marketplace rank. However, if you submit URLs that fail to pass our link checker, they will be reflected in the failed_domains method of the API.
|
145
149
|
#
|
146
150
|
# This is particularly useful for testing new URL lists or potential link sources.
|
151
|
+
#
|
152
|
+
# Please notice that blasts created this way won't show up in the /blasts or /next queues.
|
147
153
|
# Parameters:
|
148
154
|
# - id: ID # of the Service
|
149
155
|
def create_test_blast(id)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkemperor-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-26 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Link Emperor API for Customers and Vendors
|
15
15
|
email:
|
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project:
|
51
|
-
rubygems_version: 1.8.
|
51
|
+
rubygems_version: 1.8.25
|
52
52
|
signing_key:
|
53
53
|
specification_version: 3
|
54
54
|
summary: Link Emperor API
|