Forum Settings
Forums
New
Dec 4, 2022 4:44 AM
#1
Offline
Nov 2016
2
Hi, im trying to create my own APi.
Im following the tutorial https://myanimelist.net/blog.php?eid=835707
but when im trying to do step 2 after allowing, ive got message that Safari cant connect to the server 'localhost'.
Am I doing something wrong? My app redirect URL is http://localhost/oauth just like in tut.
I've tried also using this tut https://gitlab.com/-/snippets/2039434 but the answer is same.

Thanks
tamcio_Dec 4, 2022 4:50 AM
Reply Disabled for Non-Club Members
Dec 4, 2022 6:42 AM
#2
四十二

Offline
Mar 2016
442
@blaNKye: Hi! That's the expected behaviour if you're not listening for incoming connections on localhost.

After getting redirected, the URL should look like this:
http://localhost/oauth?code=def5020425...

What comes after ?code= is your Authorisation Code. You need this to generate your Access Token.
HTCPCP/1.0  ★ MetaMAL  ★ Picture credits: Living & 1041uuu
Dec 4, 2022 7:23 AM
#3
Offline
Nov 2016
2
Okay i did it and i've got my token. Thanks. but how can i use it to for example print my list, coz i dont know how to use this https://myanimelist.net/apiconfig/references/api/v2#tag/anime. Sorry but im very new to API. Im coding in python :D

Ok, nvm i think i've got this. Thanks for help!
tamcio_Dec 4, 2022 7:32 AM
Mar 18, 1:56 AM
#4
Offline
Sep 2022
1
Reply to tamcio_
Okay i did it and i've got my token. Thanks. but how can i use it to for example print my list, coz i dont know how to use this https://myanimelist.net/apiconfig/references/api/v2#tag/anime. Sorry but im very new to API. Im coding in python :D

Ok, nvm i think i've got this. Thanks for help!
@tamcio_ hey can you tell how you implemented the token part I am getting the code at the moment
Apr 22, 4:35 AM
#5
Offline
Apr 2024
1
Reply to ZeroCrystal
@blaNKye: Hi! That's the expected behaviour if you're not listening for incoming connections on localhost.

After getting redirected, the URL should look like this:
http://localhost/oauth?code=def5020425...

What comes after ?code= is your Authorisation Code. You need this to generate your Access Token.
@ZeroCrystal Hi, how am I able to extract the authorisation code into my python file?
Reply Disabled for Non-Club Members

More topics from this board

» Fully open source

HellCatNya - May 26

1 by ZeroCrystal »»
May 26, 3:04 PM

» Unannounced API maintenance ? ( 1 2 )

Jhiday - Jan 31

73 by AxtoMax »»
Apr 26, 9:46 PM

» Which endpoints support nsfw query param?

crimson-megumin - Apr 21

2 by crimson-megumin »»
Apr 23, 2:29 PM

» I made a new anime recommendation system for MyAnimeList

Asudox - Mar 21

4 by Asudox »»
Apr 11, 2:58 PM

» API Rate Limit?

Asudox - Jan 23

7 by pepeefirat »»
Mar 23, 3:57 AM
It’s time to ditch the text file.
Keep track of your anime easily by creating your own list.
Sign Up Login