lateral_recommender 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +108 -0
- data/Rakefile +14 -0
- data/lateral_recommender.gemspec +32 -0
- data/lib/lateral_recommender/version.rb +3 -0
- data/lib/lateral_recommender.rb +169 -0
- data/spec/fixtures/article-body.txt +141 -0
- data/spec/fixtures/tapes/add.yml +515 -0
- data/spec/fixtures/tapes/add_user.yml +56 -0
- data/spec/fixtures/tapes/add_user_document.yml +879 -0
- data/spec/fixtures/tapes/invalid_key.yml +38 -0
- data/spec/fixtures/tapes/near_text.yml +55 -0
- data/spec/fixtures/tapes/near_text_arxiv.yml +91 -0
- data/spec/fixtures/tapes/near_text_movies.yml +1262 -0
- data/spec/fixtures/tapes/near_text_news.yml +364 -0
- data/spec/fixtures/tapes/near_text_pubmed.yml +70 -0
- data/spec/fixtures/tapes/near_text_wikipedia.yml +55 -0
- data/spec/fixtures/tapes/near_user.yml +56 -0
- data/spec/fixtures/tapes/near_user_arxiv.yml +152 -0
- data/spec/fixtures/tapes/near_user_movies.yml +1281 -0
- data/spec/fixtures/tapes/near_user_news.yml +364 -0
- data/spec/fixtures/tapes/near_user_pubmed.yml +116 -0
- data/spec/fixtures/tapes/near_user_wikipedia.yml +88 -0
- data/spec/lateral_recommender_spec.rb +149 -0
- data/spec/spec_helper.rb +11 -0
- metadata +217 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.lateral.io/personalisation/users/?subscription-key=<API_KEY>
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: id=user_id
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- HTTPClient/1.0 (2.6.0.1, ruby 2.0.0 (2014-02-24))
|
12
|
+
Accept:
|
13
|
+
- '*/*'
|
14
|
+
Date:
|
15
|
+
- Thu, 22 Jan 2015 12:13:03 GMT
|
16
|
+
Content-Type:
|
17
|
+
- application/x-www-form-urlencoded
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 201
|
21
|
+
message: Created
|
22
|
+
headers:
|
23
|
+
Cache-Control:
|
24
|
+
- max-age=0, private, must-revalidate
|
25
|
+
Content-Length:
|
26
|
+
- '96'
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Etag:
|
30
|
+
- '"daea56294f0589e4a280ebcc12be18b2"'
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Server:
|
34
|
+
- Microsoft-HTTPAPI/2.0
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- '*'
|
37
|
+
Access-Control-Request-Method:
|
38
|
+
- '*'
|
39
|
+
Status:
|
40
|
+
- 201 Created
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000
|
43
|
+
X-Request-Id:
|
44
|
+
- 9d65956e-3ca2-43ef-88cd-b61bdd86c7a2
|
45
|
+
X-Runtime:
|
46
|
+
- '0.020783'
|
47
|
+
X-Powered-By:
|
48
|
+
- Phusion Passenger 4.0.37
|
49
|
+
Date:
|
50
|
+
- Thu, 22 Jan 2015 12:13:03 GMT
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"id":"user_id","created_at":"2015-01-22T12:13:04.002Z","updated_at":"2015-01-22T12:13:04.002Z"}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Thu, 22 Jan 2015 12:13:04 GMT
|
56
|
+
recorded_with: VCR 2.9.3
|