Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Steps to provide Client ID #115

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/mya.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,14 @@ void get_new_uri (char *uri, size_t uri_size, struct json_object *json) {
int main (int argc, char *argv[]) {
/* exit early if client id is not provided */
if (CLIENT_ID_ENV == NULL && strcmp(CLIENT_ID, "YOUR TOKEN HERE") == 0) {
fprintf(stderr, "Client ID has not been provided\n");
fprintf(stderr, "Client ID has not been provided\n\n");
fprintf(stderr, "Here are the Steps to get your MyAnimeList Client ID (skip if you already have the Client ID):\n");
fprintf(stderr, "\t1. Go to this link https://myanimelist.net/apiconfig \n");
fprintf(stderr, "\t2. Click on Create ID.\n");
fprintf(stderr, "\t3. Fill the Form with appropriate details.\n");
fprintf(stderr, "\t4. Copy the Client ID (the weird alpha-numeric value next to the label.\n\n");

fprintf(stderr, "After copying the Client ID, open \'./src/mya.c\' and replace \'MYANIMELIST_CLIENT_ID\' and \'YOUR TOKEN HERE\' with the Client ID on line no. 14 & 15.\n");
exit(EXIT_FAILURE);
}

Expand Down