Created
December 4, 2017 04:57
-
-
Save wermarter/179eb00eadee9de02a1c337e7082b186 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import origami | |
APP_TOKEN = "nongh::2113789:5001:8000:54.158.186.33" | |
app = origami.register(APP_TOKEN) | |
@origami.crossdomain | |
@app.listen() | |
def concat(): | |
allText = origami.getTextArray() | |
for text in allText: | |
print(text) | |
app.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
payload = { | |
'input-text-0': 'testText0', | |
'input-text-1': 'testText1', | |
'input-text-2': 'testText2', | |
'input-text-3': 'testText3End' | |
} | |
r = requests.post('http://localhost:8000', data=payload) | |
print(r.status_code, r.reason) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment