FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
astro-api-java-client/src/Numerology.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
/
Numerology.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (28 loc) · 1 KB
Breadcrumbs
astro-api-java-client
/
src
/
Numerology.java
Copy path
File metadata and controls
37 lines (28 loc) · 1 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
// 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
Numerology
{
public
static
void
main
(
String
[]
args
) {
// Example usage for numerology:
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
(
"name"
,
"John Doe"
);
data
.
put
(
"day"
,
8
);
data
.
put
(
"month"
,
12
);
data
.
put
(
"year"
,
2023
);
JsonNode
response
=
client
.
customCall
(
"numero_table"
,
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