phraseapp-ruby 1.0.6 → 1.0.8
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/lib/phraseapp-ruby.rb +16 -0
- data/lib/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: 36813eedfa448f81d10b2e1c7f1b098bab2034ef
|
|
4
|
+
data.tar.gz: 6c7b351a74d9426627e476508282e67482726931
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 608c7d22d7c7a1220652e09d07a1b7073b79df7ca67a25262b84c4b0115752b763e31b0d493d814c8edc2c853d19ba6f56f2f1047c58bd68f0f2fbc1222a3b41
|
|
7
|
+
data.tar.gz: 5225b68dbd52048410b8d14c7086b6b0547a2d6c09a4b5a26937d37bfb4fc33b0493459a060cda1fa17f9b58336d7ba77050ff4257ac1a9bb7d3451865539f6d
|
data/lib/phraseapp-ruby.rb
CHANGED
|
@@ -1260,6 +1260,22 @@ module RequestParams
|
|
|
1260
1260
|
end
|
|
1261
1261
|
|
|
1262
1262
|
|
|
1263
|
+
# Usage example:
|
|
1264
|
+
#
|
|
1265
|
+
# Require the gem
|
|
1266
|
+
# require 'phraseapp-ruby'
|
|
1267
|
+
# Setup Authentication
|
|
1268
|
+
# auth_handler = PhraseApp::Auth::AuthHandler.new({:token => "YOUR_ACCESS_TOKEN"})
|
|
1269
|
+
# PhraseApp::Auth.register_auth_handler(auth_handler)
|
|
1270
|
+
# Create a client
|
|
1271
|
+
# client = PhraseApp::Client
|
|
1272
|
+
# List Projects
|
|
1273
|
+
# rsp, err = client.projects_list(1, 10)
|
|
1274
|
+
# puts rsp
|
|
1275
|
+
# Create a new key
|
|
1276
|
+
# params = PhraseApp::RequestParams::TranslationKeyParams.new(:name => "foo")
|
|
1277
|
+
# rsp, err = client.key_create('YOUR_PROJECT_ID', params)
|
|
1278
|
+
# puts rsp
|
|
1263
1279
|
class Client
|
|
1264
1280
|
|
|
1265
1281
|
# Create a new authorization.
|
data/lib/version.rb
CHANGED