talon_one 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a824ac2aa53431724a6e90f25fbcf030802b2a58
4
- data.tar.gz: 8c02bb2148b342d84645da85799de353b342206f
3
+ metadata.gz: ac7cd2f5968fe78f30a0edc443d3d39265c668f7
4
+ data.tar.gz: acb3da19459917cad6094d7678c1d3f4798cf5c3
5
5
  SHA512:
6
- metadata.gz: 3590bf129b7bb99666c165b9ea776263dd0cd1b775e9733d18e4a2672faa5c239f23742eb94205d0680cf4d99585075e6cfb15111e30f67e8a882d38c665a789
7
- data.tar.gz: 881177a06def9c0a86722e32791aa8fab6518d6e466fb45ea5612808d7cb1a724c5197d9030874a6e36f6d5578922a2e29d795be1f2bb1717ca40cda6ae2ecd7
6
+ metadata.gz: 0b3bc12ad1ebb44d2be95f4b9dfcdf5c217fa9ee01e894c96ce65e8ca052a1746c28d7913bb7794f1f7ad87a5c443340d448fcbba1c89a61b987729ae3cf61b6
7
+ data.tar.gz: 90dd6bbcb5561afd2476f77aed4db4ac8350a32c41f220d5f194fc6a9a4427ed88151ef390af80d33cfcc5382c85e91da90a3485f6a46f027ac3d60be29d8a84
@@ -1,3 +1,7 @@
1
+ # 0.0.7 / 2017-05-24
2
+
3
+ * [FEATURE] Add support for creating and retrieving campaigns using the Management API
4
+
1
5
  # 0.0.6 / 2017-05-19
2
6
 
3
7
  * [FEATURE] Allow setting token on Management Client Config (instead of email + password)
@@ -60,10 +60,27 @@ module TalonOne
60
60
  def create_application(params)
61
61
  post "/v1/applications", params
62
62
  end
63
+
64
+ def get_application(application_id)
65
+ get "v1/applications/#{application_id}"
66
+ end
63
67
 
64
- def delete_application(application)
65
- delete "/v1/applications/#{application["id"]}"
68
+ def delete_application(application_id)
69
+ delete "/v1/applications/#{application_id}"
70
+ end
71
+
72
+ def get_applications
73
+ get "/v1/applications"
74
+ end
75
+
76
+ def create_campaign(application_id, params)
77
+ post "/v1/applications/#{application_id}/campaigns", params
78
+ end
79
+
80
+ def get_campaign(application_id, campaign_id)
81
+ get "v1/applications/#{application_id}/campaigns/#{campaign_id}"
66
82
  end
83
+
67
84
  end
68
85
  end
69
86
  end
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'talon_one'
3
- s.version = '0.0.6'
3
+ s.version = '0.0.7'
4
4
  s.date = '2017-05-19'
5
5
  s.summary = 'Client for the Talon.One API'
6
6
  s.description = 'A simple client for using the Talon.One API'
7
- s.authors = ['Stephen Sugden', 'Laurens Van Wiele']
7
+ s.authors = ['Talon.One GmbH']
8
8
  s.email = ['stephen@talon.one', 'vanwiele@talon.one']
9
9
  s.required_ruby_version = '>= 2.2.0'
10
10
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,11 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talon_one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
- - Stephen Sugden
8
- - Laurens Van Wiele
7
+ - Talon.One GmbH
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []