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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b67df50c169c5e728d13ac39b3c17573189b00e1
4
- data.tar.gz: 9984a6f270a068884d58e30e60710f02f5172401
3
+ metadata.gz: 1c4fee4e9c40d08ce8412d6fe2d22d5edd026205
4
+ data.tar.gz: 7399d4d719114ece00f74e9e15f8a58d24cc7eb8
5
5
  SHA512:
6
- metadata.gz: df54d8b289de83f6cec8f260d3fb5596d333af0eb6f40ae165132ea35d65ad6f12fb094c4924a6325d0d375d7b4d7a132078e02cc86439a69e31ea8468149a8c
7
- data.tar.gz: 7b9081495d4b1ac4f2240f2af09e994dc4ed2b53aa9a44bd5f2576d68babbf466b98665b8146e00c477567db4b3e3512f60adea2bf7053e6e0a20049e81f38cd
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
- :first_name => "Nathan",
45
- :last_name => "Mooney",
46
- :email_address => "someone@lifecycle.io",
47
- :phone_number => "12345678913"
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://localhost:3400/v1/identify",
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://localhost:3400/v1/track",
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
- puts response.code # Status code
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
@@ -1,3 +1,3 @@
1
1
  module Lifecycle
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.4"
3
3
  end
@@ -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{Write a short summary, because Rubygems requires one.}
13
- spec.description = %q{Write a longer description or delete this line.}
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.2
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-10 00:00:00.000000000 Z
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: Write a longer description or delete this line.
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: Write a short summary, because Rubygems requires one.
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: []
@@ -1 +0,0 @@
1
- lifecycle-api-key: "56519ba0c97ff5e67c6e9d4f"
data/lib/.DS_Store DELETED
Binary file