FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
astro-api-java-client/src/MatchMaking.java at master · astrologyapi/astro-api-java-client · GitHub
astrologyapi
/
astro-api-java-client
Public
Notifications
You must be signed in to change notification settings
Fork
6
Star
2
Code
Issues
1
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-java-client
/
src
/
MatchMaking.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
50 lines (40 loc) · 1.42 KB
Breadcrumbs
astro-api-java-client
/
src
/
MatchMaking.java
Copy path
File metadata and controls
50 lines (40 loc) · 1.42 KB
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
42
43
44
45
46
47
48
49
50
// App.java
import
java
.
util
.
HashMap
;
import
java
.
util
.
Map
;
import
com
.
fasterxml
.
jackson
.
databind
.
JsonNode
;
// from Jackson
// If not in a package, no 'package' declaration is needed.
public
class
MatchMaking
{
public
static
void
main
(
String
[]
args
) {
// Example usage for match making:
String
userID
=
System
.
getenv
(
"ASTROLOGY_API_USER_ID"
);
String
apiKey
=
System
.
getenv
(
"ASTROLOGY_API_KEY"
);
AstrologyAPIClient
client
=
new
AstrologyAPIClient
(
userID
,
apiKey
);
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
data
.
put
(
"m_day"
,
8
);
data
.
put
(
"m_month"
,
12
);
data
.
put
(
"m_year"
,
2023
);
data
.
put
(
"m_hour"
,
5
);
data
.
put
(
"m_min"
,
30
);
data
.
put
(
"m_lat"
,
12.34
);
data
.
put
(
"m_lon"
,
56.78
);
data
.
put
(
"m_tzone"
,
5.5
);
data
.
put
(
"f_day"
,
8
);
data
.
put
(
"f_month"
,
12
);
data
.
put
(
"f_year"
,
2023
);
data
.
put
(
"f_hour"
,
5
);
data
.
put
(
"f_min"
,
30
);
data
.
put
(
"f_lat"
,
12.34
);
data
.
put
(
"f_lon"
,
56.78
);
data
.
put
(
"f_tzone"
,
5.5
);
JsonNode
response
=
client
.
customCall
(
"match_ashtakoot_points"
,
data
,
"json"
);
if
(
response
!=
null
) {
System
.
out
.
println
(
"Response:
\n
"
+
response
.
toPrettyString
());
}
else
{
System
.
err
.
println
(
"Failed to retrieve data."
);
}
}
}
Back
|
FazBrowse Home
|
New Git URL