gameball 2.1.1 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/gameball-3.1.4.gem +0 -0
- data/lib/gameball/version.rb +1 -1
- data/lib/gameball.rb +1 -1
- data/test.rb +30 -0
- data/{examples.rb → v2_examples.rb} +2 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed9e427488052afe12a25547ff8e5bc55046578e7b426c11fd2029e265afbb8d
|
4
|
+
data.tar.gz: d58f5a6ed436b9b3bac64c2158f9613710c61631fb940081098c8f67abe75017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ca83f651ff38203a363d0dc382de62d6a40d5fe4be0c89bd0d54259c704994d3cc19524af7a2851bcc6a12537090eb9a0194baa6cce5d6d148eb59b619b097e
|
7
|
+
data.tar.gz: 647aad70caf51fdee10e36d452792c2b8890ce198a7c4968e57d0bcba8e12e39ac40441f3c6a48dbe9ce9251718aaa4e404fbd8e50c55bac9dfd233d31956c61
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ You don't need this source code unless you want to modify the SDK. If you just
|
|
12
12
|
want to use the SDK, just run:
|
13
13
|
|
14
14
|
```sh
|
15
|
-
gem install
|
15
|
+
gem install gameball
|
16
16
|
```
|
17
17
|
|
18
18
|
### Requirements
|
@@ -28,11 +28,11 @@ require 'gameball'
|
|
28
28
|
|
29
29
|
Gameball.api_key="api_key"
|
30
30
|
Gameball.transaction_key="transaction_key"
|
31
|
-
# If using API Version
|
32
|
-
Gameball.api_version="
|
31
|
+
# If using API Version 2.0
|
32
|
+
Gameball.api_version="v2.0"
|
33
33
|
```
|
34
34
|
|
35
|
-
###
|
35
|
+
### Examples
|
36
36
|
|
37
37
|
#### Create Player
|
38
38
|
|
@@ -49,8 +49,8 @@ Gameball::Player.initialize_player({
|
|
49
49
|
mobile: "+1234567",
|
50
50
|
email:"jon.snow@example.com",
|
51
51
|
gender:"M",
|
52
|
-
dateOfBirth:"1980-09-19T00:00:00.000Z",
|
53
|
-
joinDate:"2019-09-19T21:06:29.158Z",
|
52
|
+
dateOfBirth:DateTime.iso8601("1980-09-19T00:00:00.000Z"),
|
53
|
+
joinDate:DateTime.iso8601("2019-09-19T21:06:29.158Z"),
|
54
54
|
tags: "VIP,Platinum",
|
55
55
|
custom:{
|
56
56
|
location:"Miami",
|
@@ -69,8 +69,8 @@ Gameball::Player.initialize_player({
|
|
69
69
|
lastName:"Lannister",
|
70
70
|
email:"tyrion@example.com",
|
71
71
|
gender:"M",
|
72
|
-
dateOfBirth:"1978-01-11T00:00:00.000Z",
|
73
|
-
joinDate:"2019-09-19T21:06:29.158Z",
|
72
|
+
dateOfBirth:DateTime.iso8601("1978-01-11T00:00:00.000Z"),
|
73
|
+
joinDate:DateTime.iso8601("2019-09-19T21:06:29.158Z"),
|
74
74
|
custom:{
|
75
75
|
location:"Miami",
|
76
76
|
graduationDate:"2018-07-04T21:06:29.158Z",
|
data/gameball-3.1.4.gem
ADDED
Binary file
|
data/lib/gameball/version.rb
CHANGED
data/lib/gameball.rb
CHANGED
data/test.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require_relative "./lib/gameball"
|
2
|
+
Gameball.api_version="v3.0"
|
3
|
+
Gameball.api_key="184be486ad124379a8d1bf6dbe59cd8b"
|
4
|
+
Gameball.transaction_key="5cd1cb2bef9f475c85e8d2a6edd85894"
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
res= Gameball::Player.initialize_player({
|
10
|
+
playerUniqueId:"player121233",
|
11
|
+
mobile: "+1234567",
|
12
|
+
email: "jon.snow@example.com",
|
13
|
+
playerAttributes:{
|
14
|
+
displayName:"Jon Snow",
|
15
|
+
firstName: "Jon",
|
16
|
+
lastName: "Snow",
|
17
|
+
mobile: "+1234567",
|
18
|
+
email:"jon.snow@example.com",
|
19
|
+
gender:"M",
|
20
|
+
dateOfBirth:DateTime.iso8601("1980-09-19T00:00:00.000Z"),
|
21
|
+
joinDate:DateTime.iso8601("2019-09-19T21:06:29.158Z"),
|
22
|
+
tags: "VIP,Platinum",
|
23
|
+
custom:{
|
24
|
+
location:"Miami",
|
25
|
+
graduationDate:"2018-07-04T21:06:29.158Z",
|
26
|
+
isMarried:false
|
27
|
+
}
|
28
|
+
}
|
29
|
+
})
|
30
|
+
puts res.body
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# This file is not to be executed, this is for offering examples for the usage of the SDK
|
2
2
|
require "gameball"
|
3
3
|
Gameball.api_key = "api_key"
|
4
|
-
Gameball
|
4
|
+
Gameball.transaction_key = "transaction_key"
|
5
|
+
Gameball.api_version= "v2.0"
|
5
6
|
# Events
|
6
7
|
# Example 1
|
7
8
|
Gameball::Event.send_event({
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gameball
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alsouidan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -57,7 +57,7 @@ files:
|
|
57
57
|
- bin/console
|
58
58
|
- bin/setup
|
59
59
|
- config.rb
|
60
|
-
-
|
60
|
+
- gameball-3.1.4.gem
|
61
61
|
- gameball.gemspec
|
62
62
|
- lib/gameball.rb
|
63
63
|
- lib/gameball/exceptions/gameballException.rb
|
@@ -76,6 +76,8 @@ files:
|
|
76
76
|
- lib/gameball/utils/request.rb
|
77
77
|
- lib/gameball/utils/validation.rb
|
78
78
|
- lib/gameball/version.rb
|
79
|
+
- test.rb
|
80
|
+
- v2_examples.rb
|
79
81
|
homepage: https://www.gameball.co/
|
80
82
|
licenses:
|
81
83
|
- MIT
|