from __future__ import print_function

from transloadit.client import Transloadit

tl = Transloadit('TRANSLOADIT_KEY', 'TRANSLOADIT_SECRET')
ass = tl.new_assembly()
ass.add_file(open('fixtures/lol_cat.jpg', 'rb'))
ass.add_step('resize', '/image/resize', {'width': 70, 'height': 70})
response = ass.create(wait=True)

result_url = response.data.get('results').get('resize')[0].get('ssl_url')
print('Your result:', result_url)

from transloadit.client import Transloadit

tl = Transloadit("TRANSLOADIT_KEY", "TRANSLOADIT_SECRET")
ass = tl.new_assembly()
ass.add_file(open("fixtures/lol_cat.jpg", "rb"))
ass.add_step("resize", "/image/resize", {"width": 70, "height": 70})
response = ass.create(wait=True)

result_url = response.data.get("results").get("resize")[0].get("ssl_url")
print("Your result:", result_url)

Update example syntax to python3
Update example syntax to python3

- from __future__ import print_function
- 
  from transloadit.client import Transloadit
  
- tl = Transloadit('TRANSLOADIT_KEY', 'TRANSLOADIT_SECRET')
+ tl = Transloadit("TRANSLOADIT_KEY", "TRANSLOADIT_SECRET")
  ass = tl.new_assembly()
- ass.add_file(open('fixtures/lol_cat.jpg', 'rb'))
+ ass.add_file(open("fixtures/lol_cat.jpg", "rb"))
- ass.add_step('resize', '/image/resize', {'width': 70, 'height': 70})
+ ass.add_step("resize", "/image/resize", {"width": 70, "height": 70})
  response = ass.create(wait=True)
  
- result_url = response.data.get('results').get('resize')[0].get('ssl_url')
+ result_url = response.data.get("results").get("resize")[0].get("ssl_url")
- print('Your result:', result_url)
+ print("Your result:", result_url)
  
Update example syntax to python3
## Code Before:
from __future__ import print_function

from transloadit.client import Transloadit

tl = Transloadit('TRANSLOADIT_KEY', 'TRANSLOADIT_SECRET')
ass = tl.new_assembly()
ass.add_file(open('fixtures/lol_cat.jpg', 'rb'))
ass.add_step('resize', '/image/resize', {'width': 70, 'height': 70})
response = ass.create(wait=True)

result_url = response.data.get('results').get('resize')[0].get('ssl_url')
print('Your result:', result_url)

## Instruction:
Update example syntax to python3
## Code After:
from transloadit.client import Transloadit

tl = Transloadit("TRANSLOADIT_KEY", "TRANSLOADIT_SECRET")
ass = tl.new_assembly()
ass.add_file(open("fixtures/lol_cat.jpg", "rb"))
ass.add_step("resize", "/image/resize", {"width": 70, "height": 70})
response = ass.create(wait=True)

result_url = response.data.get("results").get("resize")[0].get("ssl_url")
print("Your result:", result_url)
