Twilio没有发送包含URL和一些文本的SMS短信
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int a[n], i, max = -99;
for (i = 0; i < n; i++) {
cin >> a[i];
}
for (i = 0; i < n; i++) {
if (a[i] > max) {
max = a[i];
cout << max;
}
}
for (i = 0; i < n; i++) {
if (max == a[i]) {
break;
} else {
// cout<<"-1";
}
max =
}
return 0;
}
我确实尝试将URL作为单独的参数发送
MessageFactory messageFactory = account.getMessageFactory();
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("To", to));
params.add(new BasicNameValuePair("From", from));
params.add(new BasicNameValuePair("Body", "15% discount. More Deals here https://www.dealsplus.com/"));
com.twilio.sdk.resource.instance.Message sms = messageFactory.create(params);
下面的代码有效
params.add(new BasicNameValuePair("Url", msgurl));