File tree 4 files changed +27
-1
lines changed
4 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Java_OMDbAPI
2
2
3
+ Java application to query movie information.
4
+
5
+ The API used is from OMDb. //Get your key here:
6
+ http://www.omdbapi.com/
7
+
8
+ # About
9
+
10
+ This project was developed as a need of mine to learn to developed and handle HTTP requisitions with Java.
11
+ This is a Maven Java Project.
12
+ Swing was used to build a user-friendly GUI.
13
+
14
+ 3 dependencies has been used:
15
+ com.squareup.okhttp3 -- To get the API's response
16
+ org.json -- To transform the API's Response into a JSON
17
+ com.jayway.jsonpath -- To get values from the JSON
18
+
19
+ A separate class was created (MyPrivateKey.java) to hide my API key that is used in Main.java
20
+
21
+
22
+ # Screenshots
23
+
24
+ ## ` Main page `
25
+ ![ all-text] ( https://github.com/bispo-daniel/Java_OMDbAPI/blob/main/src/Screenshots/MainPageScreenshot.png )
26
+
27
+ ## ` Query page `
28
+ ![ all-text] ( https://github.com/bispo-daniel/Java_OMDbAPI/blob/main/src/Screenshots/QueryPageScreenshot.png )
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ static void menu() throws IOException {
90
90
String key = myPrivateKey .KEY ;
91
91
String URL = "http://www.omdbapi.com/?t=%s&apikey=%s" ;
92
92
93
- String dialog = "Welcome to the Java Movie App!!\n \n Type a movie title \n Type 0 to exit" ;
93
+ String dialog = "Welcome to the Java Movie App!!\n \n Type a Movie Title \n Type 0 to exit" ;
94
94
String query = JOptionPane .showInputDialog (null , dialog );
95
95
96
96
if (query .equals ("0" )) {
You can’t perform that action at this time.
0 commit comments