WhatsApp Web API-使用空格传递链接
我试图使用WhatsApp web API传递包含链接的消息。最初我有问题,因为链接包含ambersand符号,我通过将它们替换为%26解决了这个问题 我还使用%0a在邮件中创建了新行 我无法解决的问题是,当我想要传递一个包含空格的链接时。例如: 我点击以传递给WhatsApp的是:WhatsApp Web API-使用空格传递链接,api,google-sheets,whatsapp,Api,Google Sheets,Whatsapp,我试图使用WhatsApp web API传递包含链接的消息。最初我有问题,因为链接包含ambersand符号,我通过将它们替换为%26解决了这个问题 我还使用%0a在邮件中创建了新行 我无法解决的问题是,当我想要传递一个包含空格的链接时。例如: 我点击以传递给WhatsApp的是: https://wa.me/+447777777777?text=Dear parent of David West,%0a%0aEach year at our school we check that we h
https://wa.me/+447777777777?text=Dear parent of David West,%0a%0aEach year at our school we check that we have the most up to date information about our pupils. Please click the link to update the records for your child.%0a%0aYou will notice that the information you gave to us last year is already filled in to save you time.%0a%0aIf nothing has changed, this will take less than one minute. It is important that we have this information as soon as possible.%0a%0aMany thanks,%0a%0aName of Primary School%0a%0a%0a%0ahttps://docs.google.com/forms/d/e/1FAIpQLScLbXCmKebAkrnz9dw7he_CSOu8iCwKbJY_my-IRsB-eebdFA/viewform?usp=pp_url%26entry.647495402=David%20West%26entry.1315828=+447777777777%26entry.843880398=Anfield%20Stadium,%20Liverpool,%20L1%207HD
最初在链接中使用空格会破坏链接,所以我将它们替换为%20,这会传递到WhatsApp,但它会处理它们,并在链接中插入空格
是否有一种方法可以将%20换成其他东西,从而在最终链接中实际保留%20。或者我可以插入一些东西来阻止WhatsApp处理它,并将其换成空间
根据谷歌工作表中的条目生成代码,这对我来说非常简单,可以替换字符。你能详细说明“它处理这些内容,并在链接中插入空格”的意思吗?当然,对不起!如果您查看链接2的结尾,您将看到结尾位是%20L1、%20L1等。当消息传输到WhatsApp消息时,%20已被实际空格替换。我希望它保持为%20,即使在邮件中也是如此。
https://wa.me/+447777777777?text=Dear parent of David West,%0a%0aEach year at our school we check that we have the most up to date information about our pupils. Please click the link to update the records for your child.%0a%0aYou will notice that the information you gave to us last year is already filled in to save you time.%0a%0aIf nothing has changed, this will take less than one minute. It is important that we have this information as soon as possible.%0a%0aMany thanks,%0a%0aName of Primary School%0a%0a%0a%0ahttps://docs.google.com/forms/d/e/1FAIpQLScLbXCmKebAkrnz9dw7he_CSOu8iCwKbJY_my-IRsB-eebdFA/viewform?usp=pp_url%26entry.647495402=David%20West%26entry.1315828=+447777777777%26entry.843880398=Anfield%20Stadium,%20Liverpool,%20L1%207HD