FlaskWithAndroid icon indicating copy to clipboard operation
FlaskWithAndroid copied to clipboard

how to get mutli values from flask return to retrofil

Open bilalamjad837 opened this issue 4 years ago • 1 comments

how to get mutli values from flask return to retrofit for example i get lattitude & longitude from flask but msg show 1 value only flask:

@app.route('/api/xyz', methods=['POST']) def xyz(): return str(latitude), str(longitude)

android: val msg = response.body()?.string() msg only get 1 value how to get multiple values.

bilalamjad837 avatar Apr 02 '20 09:04 bilalamjad837

For that you need to json by making a json use same method as showen in the code for post and done

shantamsultania avatar Jun 05 '20 08:06 shantamsultania