Skip to content

Instantly share code, notes, and snippets.

@souravs17031999
Created April 24, 2022 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souravs17031999/50abdacc8ee4f12b6924c1974b24233f to your computer and use it in GitHub Desktop.
Save souravs17031999/50abdacc8ee4f12b6924c1974b24233f to your computer and use it in GitHub Desktop.
def get_message_for_twilio_SMS(json_response, current_price_of_product):
productTitle = json_response["product"]["title"][:30]
productId = json_response["product"]["asin"]
productBuyLink = json_response["product"]["link"]
messageBody = f"Hurry up ! Your requested Product {productTitle} is available within your budget for rs. {current_price_of_product}. Click on link now to order it. \
{productBuyLink}"
return messageBody
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment