FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
astro-api-ruby-client/matchmaking.rb at master · astrologyapi/astro-api-ruby-client · GitHub
astrologyapi
/
astro-api-ruby-client
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
3
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
astro-api-ruby-client
/
matchmaking.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (34 loc) · 891 Bytes
Breadcrumbs
astro-api-ruby-client
/
matchmaking.rb
Copy path
File metadata and controls
41 lines (34 loc) · 891 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require
'./sdk'
require
'dotenv/load'
userID
=
ENV
[
'ASTROLOGY_API_USER_ID'
]
apiKey
=
ENV
[
'ASTROLOGY_API_KEY'
]
# create a male profile data
maleData
=
{
'date'
=>
25
,
'month'
=>
12
,
'year'
=>
1988
,
'hour'
=>
4
,
'minute'
=>
0
,
'latitude'
=>
25.123
,
'longitude'
=>
82.34
,
'timezone'
=>
5.5
}
# create female data
femaleData
=
{
'date'
=>
27
,
'month'
=>
1
,
'year'
=>
1990
,
'hour'
=>
13
,
'minute'
=>
36
,
'latitude'
=>
25.123
,
'longitude'
=>
82.34
,
'timezone'
=>
5.5
}
# match making api to be called
resource
=
"match_ashtakoot_points"
#create instance of AstrologyAPIClient
ritesh
=
AstrologyAPIClient
.
new
(
userID
,
apiKey
)
# call matchMakingCall method of AstrologyAPIClient for matching apis
matchMakingData
=
ritesh
.
matchMakingCall
(
resource
,
maleData
,
femaleData
)
# print response data recieved from api
puts
matchMakingData
Back
|
FazBrowse Home
|
New Git URL