Skip to content

Instantly share code, notes, and snippets.

@wermarter
Created December 4, 2017 04:57
Show Gist options
  • Save wermarter/179eb00eadee9de02a1c337e7082b186 to your computer and use it in GitHub Desktop.
Save wermarter/179eb00eadee9de02a1c337e7082b186 to your computer and use it in GitHub Desktop.
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()
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