lifecycle_api 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/README.md +7 -5
- data/lib/lifecycle_api/lifecycle.rb +4 -4
- data/lib/lifecycle_api/version.rb +1 -1
- data/lifecycle_api.gemspec +2 -2
- metadata +5 -6
- data/config/lifecycle_api.yml +0 -1
- data/lib/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c4fee4e9c40d08ce8412d6fe2d22d5edd026205
|
4
|
+
data.tar.gz: 7399d4d719114ece00f74e9e15f8a58d24cc7eb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d46ef1d63e95e73f8e9e225000078180d018603a5cdff6dd66374ddfeb1837244761b630b2c4d2f0d222467ab6a30ba5010b80a535721df436ce2f37329d38be
|
7
|
+
data.tar.gz: 2739aaaa3e225a493886d1b58a0d7ca41a3488433bdc75b3c49fda0f570f77485f433154cc52c096980d0278b77757deb0f6b45c3fc843cd7b3390bab7879162
|
data/.DS_Store
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -40,12 +40,14 @@ lifecycle.track 'event_id', 'unique_id'
|
|
40
40
|
|
41
41
|
```ruby
|
42
42
|
#Example of params variable to use with identify call
|
43
|
+
#notice the .to_json at the end. The rest api will not be able
|
44
|
+
#to parse your request without this.
|
43
45
|
params = {:unique_id => "1234",
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
}
|
46
|
+
:first_name => "Nathan",
|
47
|
+
:last_name => "Mooney",
|
48
|
+
:email_address => "someone@getvenn.io",
|
49
|
+
:phone_number => "12345678913"
|
50
|
+
}.to_json
|
49
51
|
```
|
50
52
|
Use this gem to interact with your Lifecycle account. Easily identify users and track users with minimal code. If you are looking for packages in a language other than ruby, check out the TeamLifecycle organization for your desired language. It is our hope that by providing this gem, integration and usage of Lifecycle will be quick and easy.
|
51
53
|
|
@@ -21,7 +21,7 @@ module Lifecycle
|
|
21
21
|
end
|
22
22
|
def identify(params)
|
23
23
|
# response = Unirest.post "http://lifecycle.io/v1/identify",
|
24
|
-
response = Unirest.post "http://
|
24
|
+
response = Unirest.post "http://api.lifecycle.io/v1/identify",
|
25
25
|
headers:{ "Content-Type" => "application/json", "lifecycle-api-key" => self.api_key },
|
26
26
|
parameters: params
|
27
27
|
response.code # Status code
|
@@ -32,10 +32,10 @@ module Lifecycle
|
|
32
32
|
end
|
33
33
|
def track(event_id, unique_id)
|
34
34
|
# response = Unirest.post "http://lifecycle.io/v1/track",
|
35
|
-
response = Unirest.post "http://
|
35
|
+
response = Unirest.post "http://api.lifecycle.io/v1/track",
|
36
36
|
headers:{ "Content-Type" => "application/json", "lifecycle-api-key" => self.api_key },
|
37
|
-
parameters: { :event_id => event_id, :unique_id => unique_id }
|
38
|
-
|
37
|
+
parameters: { :event_id => event_id, :unique_id => unique_id }.to_json
|
38
|
+
response.code # Status code
|
39
39
|
response.headers # Response headers
|
40
40
|
response.body # Parsed body
|
41
41
|
response.raw_body # Unparsed body
|
data/lifecycle_api.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Jake Mooney"]
|
10
10
|
spec.email = ["jrmooney@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.description = %q{
|
12
|
+
spec.summary = %q{The official gem for making clean and easy api calls to your lifecycle account. OFFICIAL LIFECYCLE API GEM}
|
13
|
+
spec.description = %q{Check our more on details regarding installation and usage at https://github.com/TeamLifecycle/lifecycle-ruby}
|
14
14
|
spec.homepage = "https://www.lifecycle.io/"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lifecycle_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Mooney
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description:
|
111
|
+
description: Check our more on details regarding installation and usage at https://github.com/TeamLifecycle/lifecycle-ruby
|
112
112
|
email:
|
113
113
|
- jrmooney@gmail.com
|
114
114
|
executables: []
|
@@ -127,9 +127,7 @@ files:
|
|
127
127
|
- Rakefile
|
128
128
|
- bin/console
|
129
129
|
- bin/setup
|
130
|
-
- config/lifecycle_api.yml
|
131
130
|
- example.rb
|
132
|
-
- lib/.DS_Store
|
133
131
|
- lib/lifecycle_api/client.rb
|
134
132
|
- lib/lifecycle_api/configuration.rb
|
135
133
|
- lib/lifecycle_api/lifecycle.rb
|
@@ -159,5 +157,6 @@ rubyforge_project:
|
|
159
157
|
rubygems_version: 2.4.3
|
160
158
|
signing_key:
|
161
159
|
specification_version: 4
|
162
|
-
summary:
|
160
|
+
summary: The official gem for making clean and easy api calls to your lifecycle account.
|
161
|
+
OFFICIAL LIFECYCLE API GEM
|
163
162
|
test_files: []
|
data/config/lifecycle_api.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lifecycle-api-key: "56519ba0c97ff5e67c6e9d4f"
|
data/lib/.DS_Store
DELETED
Binary file
|