Gmail Manager App is a Java application that uses the Gmail API to manage emails. This app provides a basic implementation to list the user's Gmail labels.
- Clone the repository:
git clone https://github.com/hamidurrk/GmailManagerApp.git
- Navigate to the
GmailManagerApp
directory:cd GmailManagerApp
- Build the project using Maven:
mvn clean install
- Run the application:
java -jar target/GmailManagerApp-1.0-SNAPSHOT.jar
- Log in to your Gmail account when prompted.
- The application will list all the labels in your account.
The application requires a credentials.json
file to authenticate with the Gmail API. The file should be located in the src/main/resources
directory of the project. If you don't have this file, follow these steps to create one:
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
- In the left sidebar, click on APIs & Services > Credentials.
- Click on Create credentials > OAuth client ID.
- Select Desktop App as the application type.
- Give your client ID a name and click Create.
- Download your client ID as a JSON file and save it as
credentials.json
in thesrc/main/resources
directory.
We welcome contributions to the Gmail Manager App project. If you would like to contribute, please open a pull request with your changes.