Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
from API to ip
#4
(Dec-05-2018, 10:09 PM)nilamo Wrote: If you're using flask, you can just return the data. Printing only prints it to the console on the server side, it never makes it to the client. If you didn't already have json, and instead had something like a dict, Flask has a jsonify function to help. The docs for that function will probably help, as they show example usage: http://flask.pocoo.org/docs/1.0/api/#flask.json.jsonify


yes i know returning but i want to send it to user, how it can be done ?
Reply


Messages In This Thread
from API to ip - by whatl0ol - Dec-05-2018, 09:11 PM
RE: from API to ip - by nilamo - Dec-05-2018, 10:09 PM
RE: from API to ip - by whatl0ol - Dec-05-2018, 10:11 PM
RE: from API to ip - by nilamo - Dec-05-2018, 10:13 PM
RE: from API to ip - by whatl0ol - Dec-05-2018, 10:19 PM
RE: from API to ip - by nilamo - Dec-06-2018, 04:45 AM
RE: from API to ip - by whatl0ol - Dec-06-2018, 04:11 PM
RE: from API to ip - by nilamo - Dec-06-2018, 04:49 PM
RE: from API to ip - by whatl0ol - Dec-06-2018, 04:49 PM
RE: from API to ip - by nilamo - Dec-06-2018, 05:10 PM
RE: from API to ip - by snippsat - Dec-06-2018, 11:00 PM
html to python - by whatl0ol - Dec-06-2018, 12:36 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020