Getting User ID

Oh, it was a fake token, just to do an example.

I see the ?code= in my localhost page but how can i take that code and save it? Like in a file? To use it on my script?

Thank you