Answer the question
In order to leave comments, you need to log in
Can I use GET in displaying data?
Good afternoon, I have a question. I have a website, the website is authorized through VK, after authorization I receive GET parameters, can I add them to variables and use them in the data display in the future? For example, a person logged in, I received his first and last name, I need to display this data, how can I do this? For the first time I encounter this, I decided to try to make a small project for practice.
Answer the question
In order to leave comments, you need to log in
You get a response to the request, for convenience you present it here in a different form https://jsoneditoronline.org/
Using json, you get the required parameter from the response:
first_name = res.json()['response'][0]['first_name']
last_name = res.json()['response'][0]['last_name']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question