helpshift 0.1.1 → 0.1.2

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: 335563c1c94f9b4a4ceae79192b0ae7c744654c3
4
- data.tar.gz: 012516faf88909af0d1fd1eefa617fb1890d9c79
3
+ metadata.gz: aec25c42a2813fd5ad99dd9d382d462ed5cb1f29
4
+ data.tar.gz: 16bd1d794fccf10fc508822c76b1708dee168122
5
5
  SHA512:
6
- metadata.gz: b99913c69d1dea78608e499f8e0a9bd0919bb71d4696af0d55d609fb0bacdbaf9f33745f7009ff7abf92264d3054b72cca5d09c760e090d592810ca666ee1ef1
7
- data.tar.gz: 01262ab01a2f0d3d20bf249a09363580f09a719882e18ddc15efae9fef46e1c34895186728656f7c217a4b664f224ee9c96027baffbc8eddd696559123dbc09a
6
+ metadata.gz: 8c040352ff0fd323a80526eb2b6ee3b292d03d37167e3f87317255d90e32914231fa47097e07302ef6e9bd27bca329476ebb94ce09ad92a1bb804eff97eb90f8
7
+ data.tar.gz: 84cd401b3ca894327cc4b0104d3a8c449c67f58872ecd391d109d3c623696f71472a22c14145b983e92a696027e4e215ae9b2701e67101a2adb805c4fe8394a9
data/README.md CHANGED
@@ -29,14 +29,37 @@ end
29
29
 
30
30
  ## Usage
31
31
 
32
- Get Issues:
32
+ ### Create an Issue:
33
+
34
+ ```ruby
35
+ body = {
36
+ 'email' => 'your.email@yourdomain.com',
37
+ 'title' => 'this is your title',
38
+ 'message-body' => 'This is the message body'
39
+ }
40
+ resp = Helpshift.post('/issues/', body)
41
+ ```
42
+
43
+ ### Get Issues:
44
+
45
+ Check issues in Helpshift admin - https://[customer_domain].helpshift.com/admin/issues/0-4/
46
+
47
+ All Issues:
33
48
 
34
49
  ```ruby
35
50
  resp = Helpshift.get('/issues')
36
51
  resp['issues']
37
52
  ```
38
53
 
39
- Update Custom Issue Fields
54
+ Single Issue:
55
+
56
+ ```ruby
57
+ issue_id = 279
58
+ resp = Helpshift.get("/issues/#{issue_id}")
59
+ resp['issues']
60
+ ```
61
+
62
+ ### Update Custom Issue Fields
40
63
 
41
64
  Configure issue fields in Helpshift admin - https://[customer_domain].helpshift.com/admin/.
42
65
  Navigate to Settings > Custom Issue Fields.
@@ -56,7 +79,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
56
79
 
57
80
  ## Contributing
58
81
 
59
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/helpshift. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
82
+ Bug reports and pull requests are welcome on GitHub at https://github.com/shhavel/helpshift. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
60
83
 
61
84
  ## License
62
85
 
@@ -40,4 +40,8 @@ module Helpshift
40
40
  def self.put(path, body)
41
41
  perform_request Net::HTTP::Put, path, base_uri: base_uri, headers: headers, body: body, format: :json
42
42
  end
43
+
44
+ def self.post(path, body)
45
+ perform_request Net::HTTP::Post, path, base_uri: base_uri, headers: headers, body: body, format: :json
46
+ end
43
47
  end
@@ -1,3 +1,3 @@
1
1
  module Helpshift
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helpshift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleksandr Avoyants
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-31 00:00:00.000000000 Z
11
+ date: 2018-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty