D
D
DoubleTap2022-01-30 12:00:53
Python
DoubleTap, 2022-01-30 12:00:53

How to write script via API in Python?

I welcome everyone!
I myself am quite new to python, usually it is not always required at work, but this time it will be very necessary. Yes, it may seem like a very easy task in a sense, but with api I am a complete zero. I'll try to fix it.

The challenge is to bulk update items in the portal. There is an API for this task https://pastebin.com/0LgW0St1 (rename the example from QWERTY1 to QWERTY12). I want to try without Python, just through XML, but since there are several thousand names, the value cannot be duplicated - it replaces only the value of the first value.

I'm trying to find information on the Python XML API with examples, but I mostly come across examples with creating an xml file.

Please tell me articles with examples on the topic, in order to know where to dig.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2022-01-30
@dimonchik2013

you can use Postman, it's clearer there, but, alas, you can also learn scripts
if you already fumble how to send requests - then the usual cycle + str. replace or, if more complex, regexp replace
In general, python wrapperflow examples will be easier postman

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question