V
V
Victor Corvus2021-06-17 16:32:09
Django
Victor Corvus, 2021-06-17 16:32:09

how to work with api in python django?

Hello, there is an api. As

{"cn":"421156|||","status":1,"reason":" => [US] VISA CREDIT GOLD PREMIUM CHASE BANK USA, N.A."}

Please explain how to work with this format? How to make a wrap? And how to connect the code of this api to the site on Django?
I would be grateful if someone provides some kind of article for working with api.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Kuts, 2021-06-17
@fox_12

This is a regular json - take it and convert it to a regular dict - yes it works ....

H
HELLSP4RK, 2021-06-17
@HELLSP4RK

You can work with a similar format through the Django REST framework
For a quick understanding of what it is and how to work with it, I can recommend watching the webinar recording , it gives a basic idea of ​​​​the framework

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question