{"id":23037081,"url":"https://github.com/n7ghtm4r3/googlemanager","last_synced_at":"2025-04-02T23:17:50.832Z","repository":{"id":62055389,"uuid":"548982140","full_name":"N7ghtm4r3/GoogleManager","owner":"N7ghtm4r3","description":"This is a Java-based library useful to work with all Google's API services. Good use!","archived":false,"fork":false,"pushed_at":"2024-01-29T21:46:12.000Z","size":1007,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T13:27:12.874Z","etag":null,"topics":["api","api-client","api-java","gmail","gmail-api","google","google-api","java","oauth2","oauth2-client","oauth2-server","tecknobit"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/N7ghtm4r3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-10T13:44:41.000Z","updated_at":"2023-03-18T16:49:38.000Z","dependencies_parsed_at":"2023-01-26T08:46:55.039Z","dependency_job_id":"dc9e6486-652b-4ad9-8e06-e36bdd213e3c","html_url":"https://github.com/N7ghtm4r3/GoogleManager","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N7ghtm4r3%2FGoogleManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N7ghtm4r3%2FGoogleManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N7ghtm4r3%2FGoogleManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/N7ghtm4r3%2FGoogleManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/N7ghtm4r3","download_url":"https://codeload.github.com/N7ghtm4r3/GoogleManager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246905869,"owners_count":20852820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-client","api-java","gmail","gmail-api","google","google-api","java","oauth2","oauth2-client","oauth2-server","tecknobit"],"created_at":"2024-12-15T17:28:36.451Z","updated_at":"2025-04-02T23:17:50.797Z","avatar_url":"https://github.com/N7ghtm4r3.png","language":"Java","funding_links":["https://www.paypal.com/donate/?hosted_button_id=5QMN5UQH7LDT4"],"categories":[],"sub_categories":[],"readme":"# GoogleManager\n**v1.0.3**\n\nThis is a Java Based library useful to work with Google API services\n\n## Implementation\n\nAdd the JitPack repository to your build file\n\n### Gradle\n\n- Add it in your root build.gradle at the end of repositories\n\n    #### Gradle (Short)\n         \n    ```gradle\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n    ```\n\n    #### Gradle (Kotlin)\n         \n    ```gradle\n    repositories {\n        ...\n        maven(\"https://jitpack.io\")\n    }\n    ```\n    \n- Add the dependency\n\n    #### Gradle (Short)\n         \n    ```gradle\n    dependencies {\n        implementation 'com.github.N7ghtm4r3:GoogleManager:1.0.3'\n    }\n    ```\n\n    #### Gradle (Kotlin)\n         \n    ```gradle\n    dependencies {\n        implementation(\"com.github.N7ghtm4r3:GoogleManager:1.0.3\")\n    }\n    ```\n\n### Maven\n\n- Add it in your root build.gradle at the end of repositories\n\n```xml\n\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ejitpack.io\u003c/id\u003e\n        \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n    \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\n- Add the dependency\n\n```xml\n\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.N7ghtm4r3\u003c/groupId\u003e\n  \u003cartifactId\u003eGoogleManager\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## 🛠 Skills\n\n- Java\n\n## Services available\n\n- \u003ca href=\"https://developers.google.com/gmail/api/reference/rest\"\u003e\u003cstrong\u003eGmail\u003c/strong\u003e\u003c/a\u003e\n\nThe other services will be gradually released\n\n## Initial configuration\n\nBefore to start you have to create or authorize, from \u003ca href=\"https://console.cloud.google.com/apis/\"\u003e Google API\nConsole\u003c/a\u003e, the new project that you will use in this library:\n\n- \u003ca href=\"https://console.cloud.google.com/projectcreate\"\u003e Create a project \u003c/a\u003e to use in the library if you haven't one yet\n- Then you have to choose, and **enable**, the API services that you need\n  from \u003ca href=\"https://console.cloud.google.com/apis/library\"\u003e this page\u003c/a\u003e\n- After chosen the API services that you need, you have\n  to \u003ca href=\"https://console.cloud.google.com/apis/credentials/consent\"\u003econfigure consent screen\u003c/a\u003e to be allowed to\n  use **OAuth 2.0 Client IDs** service (this library use **only** this as authentication mode)\n- After configured the consent screen, you have to create and\n  configure \u003ca href=\"https://console.cloud.google.com/apis/credentials/oauthclient\"\u003eOAuth client ID\u003c/a\u003e to copy the\n  **Client ID** and the **Client secret** or download the JSON file with these credentials, in this case you need to\n  parse\n  by yourself to get the **Client ID** and the **Client secret**. \u003cbr\u003e **Note:** based on your choose for **Application\n  type** you have to configure by yourself details such as **host**, **port**, **callback path**, etc\n- After these operations you and your project are ready to use **GoogleManager** library!\n\n## Usage/Examples\n\n#### Execution\n\nFor any library manager you need to instantiate it like this:\n\n```java\n// choose the manager for example: Gmail, etc \nGoogleManager manager = new GoogleManager(clientId,clientSecret,userId, /* params of the constructor chosen */);\n// and then use it\nmanager.makeSomething();\n```\n\nTo avoid re-entering credentials for each manager, you can instantiate managers like this:\n\n```java\n// choose the manager for example: Gmail, etc \nGoogleManager firstManager = new GoogleManager(clientId,clientSecret,userId, /* params of the constructor chosen */);\n// and then use it \nfirstManager.makeSomething();\n// you don't need to insert all credentials to make manager work\nGoogleManager secondManager = new GoogleManager(); // same credentials used\n// and then use it\nsecondManager.makeSomething();\n```\n\n#### Responses\n\nLibrary give to you the opportunity to customize the return object after a request, the possibilities are:\n\n- **JSON:** return response formatted as **JSON** (**org.json.JSONObject** or **org.json.JSONArray**)\n- **STRING:** return response formatted as **String**\n- **LIBRARY_OBJECT:** return response formatted as custom object offered by **GoogleManager's library**\n\nYou find the constants in **GoogleManager.ReturnFormat enum**\n\n```java\n// choose the manager for example: Gmail, etc \nGoogleManager manager = new GoogleManager(clientId,clientSecret,userId, /* params of the constructor chosen */);\n// method to return directly a library given by library\nmanager.someRequest(); // in this case will be returned directly a LIBRARY_OBJECT\n// method to customize the format of the return \nmanager.someRequest(ReturnFormat.JSON); // in this case will be returned response in JSON format\n```\n\n## Authors\n\n- [@N7ghtm4r3](https://www.github.com/N7ghtm4r3)\n\n## Support\n\nIf you need help using the library or encounter any problems or bugs, please contact us via the following links:\n\n- Support via \u003ca href=\"mailto:infotecknobitcompany@gmail.com\"\u003eemail\u003c/a\u003e\n- Support via \u003ca href=\"https://github.com/N7ghtm4r3/GoogleManager/issues/new\"\u003eGitHub\u003c/a\u003e\n\nThank you for your help!\n\n## Badges\n\n[![](https://img.shields.io/badge/Google_Play-414141?style=for-the-badge\u0026logo=google-play\u0026logoColor=white)](https://play.google.com/store/apps/developer?id=Tecknobit)\n[![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white)](https://twitter.com/tecknobit)\n\n[![](https://img.shields.io/badge/google-4285F4?style=for-the-badge\u0026logo=google\u0026logoColor=white)](https://developers.google.com/apis-explorer/)\n[![](https://img.shields.io/badge/Java-ED8B00?style=for-the-badge\u0026logo=java\u0026logoColor=white)](https://www.oracle.com/java/)\n\n[![](https://jitpack.io/v/N7ghtm4r3/GoogleManager.svg)](https://jitpack.io/#N7ghtm4r3/GoogleManager)\n\n## Donations\n\nIf you want support project and developer\n\n| Crypto  | Address| Network |\n| ------------- | ------------- | ------------- |\n| ![](https://img.shields.io/badge/Bitcoin-000000?style=for-the-badge\u0026logo=bitcoin\u0026logoColor=white) | **3H3jyCzcRmnxroHthuXh22GXXSmizin2yp** | Bitcoin |\n| ![](https://img.shields.io/badge/Ethereum-3C3C3D?style=for-the-badge\u0026logo=Ethereum\u0026logoColor=white)  | **0x1b45bc41efeb3ed655b078f95086f25fc83345c4**  | Ethereum |\n\nIf you want support project and developer\nwith \u003ca href=\"https://www.paypal.com/donate/?hosted_button_id=5QMN5UQH7LDT4\"\u003ePayPal\u003c/a\u003e\n\nCopyright © 2024 Tecknobit\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn7ghtm4r3%2Fgooglemanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn7ghtm4r3%2Fgooglemanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn7ghtm4r3%2Fgooglemanager/lists"}