N
N
NooBick2019-11-09 23:24:47
MySQL
NooBick, 2019-11-09 23:24:47

Question about requests.post, how to do data correctly?

How to do it right in date, here it is - "}

{"device":{"deviceId":"new_kfc_web_site","deviceType":"mobile"},"createdAt":"2019-11-09T13:43:32.192Z","phone":" 79000000000"}

5dc720cae3bc9851560216.png
I tried that, but it didn't work.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
J
jobsdata, 2018-10-15
@jobsdata

Well, enter the root password.
If no password is used, re-create the database.
It was something like that, but a long time ago.

V
Vitaly Ilnitsky, 2018-10-15
@vetalil18

5bc4e37d9a8f8161115067.png

S
Stanislav Shendakov, 2018-10-16
@shindax

phpmyadmin installed? Is it possible to get in through it? What system is being developed on in general?

R
Ruslan, 2019-11-10
@NooBick

If you need to pass a dictionary to post, you can simply use json in requests added such functionality.
example:
requests.post('url', json=your_dict)
only the dictionary must be valid

V
vlsnake, 2019-11-10
@vlsnake

NooBick ,
Well, you can "tear out" from flask

from flask import jsonify

def get_task():
    return jsonify({"device":{"deviceId":"new_kfc_web_site","deviceType":"mobile"},"createdAt":"2019-11-09T13:43:32.192Z","phone":" 79000000000"})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question