OneCompiler APIs

פרמיום
על ידי OneCompiler | מְעוּדכָּן a month ago | Tools
פּוֹפּוּלָרִיוּת

9.7 / 10

חֶבִיוֹן

353ms

רמת שירות

100%

Health Check

100%

חזרה לכל הדיונים

How do you pass large content for python code through API

Rapid account: Tak 0209
tak0209
2 months ago

I can pass JS with a single line but how do yo pass a python code that has 20 lines?

can you give me an example? try ; but that didn’t work. Thanks!

Rapid account: Karthikdivi
karthikdivi Commented 2 months ago

You can try JSON escaping while sending the code i.e use \n for new lines

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות