Skip to content

Commit

Permalink
Added instructions to provide Client ID (#115)
Browse files Browse the repository at this point in the history
Added detailed steps so that the user can generate their Client ID on myanimelist.net and then provide it to the code.
  • Loading branch information
viv1kk authored Jan 12, 2024
1 parent c7d38ad commit 52ae4bd
Showing 1 changed file with 8 additions and 1 deletion.
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

0 comments on commit 52ae4bd

Please sign in to comment.