teratail-sdk-ruby 0.1.0 → 0.1.1
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 +41 -1
- data/lib/teratail/version.rb +1 -1
- data/src/teratail/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9126daa31cded7781a57c7af49e3445a45c169a0
|
|
4
|
+
data.tar.gz: e271b533c1d40e0c8dd8aee4115c15e1c92624e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43f0db2c5a2ba55551c579fa40cac17eeb1eb0c59b7d495dff4bb6aa49905e64eff52d79012eca59939711b460080ade87c336f0ac7b80c88bbf7d51bd8c89c8
|
|
7
|
+
data.tar.gz: 62841e371e6a22a8d454d8ad70163da265e495e1c1263cb3dbc96fdc50eb5c24c7bb5b5e3d3b208638cc94a54261b00e601294016ec278a568c2712481f5351d
|
data/README.md
CHANGED
|
@@ -1,2 +1,42 @@
|
|
|
1
1
|
# teratail-sdk-ruby
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
sdk which call apis of Programming Q&A Site [Teratail](https://teratail.com/)
|
|
4
|
+
|
|
5
|
+
You Can Develop an awesome web service which uses teratail's api more rapidly.
|
|
6
|
+
|
|
7
|
+
## notice
|
|
8
|
+
This is unofficial sdk.
|
|
9
|
+
|
|
10
|
+
## install
|
|
11
|
+
|
|
12
|
+
Write your Gemfile
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
gem 'teratail-sdk-ruby'
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## usage
|
|
19
|
+
|
|
20
|
+
```Ruby
|
|
21
|
+
client = Teratail.new(access_token) #input your access token
|
|
22
|
+
|
|
23
|
+
# get questions
|
|
24
|
+
client.question.find_all
|
|
25
|
+
|
|
26
|
+
# with paging and array limit option
|
|
27
|
+
client.question.find_all(2,30) #you can get 2 page and 30 question array element
|
|
28
|
+
|
|
29
|
+
# get tags
|
|
30
|
+
client.tag.find_all
|
|
31
|
+
# get users
|
|
32
|
+
client.user.find_all
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# rule
|
|
38
|
+
This library's license is MIT.You can alter or reproduct this.
|
|
39
|
+
Please follow [teratail service api term](https://teratail.com/legal) when you use.
|
|
40
|
+
|
|
41
|
+
# official document
|
|
42
|
+
[Teratail API Document](http://docs.teratailv1.apiary.io/#introduction)
|
data/lib/teratail/version.rb
CHANGED
data/src/teratail/version.rb
CHANGED