helpshift 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +26 -3
- data/lib/helpshift.rb +4 -0
- data/lib/helpshift/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aec25c42a2813fd5ad99dd9d382d462ed5cb1f29
|
4
|
+
data.tar.gz: 16bd1d794fccf10fc508822c76b1708dee168122
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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/
|
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
|
|
data/lib/helpshift.rb
CHANGED
@@ -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
|
data/lib/helpshift/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2018-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|