【发布时间】:2017-04-30 09:54:20
【问题描述】:
我正在尝试使用 Twilio 站点发送消息。 当我运行这段代码时:
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
com.twilio.rest.api.v2010.account.Message message =
com.twilio.rest.api.v2010.account.Message.creator(new PhoneNumber(phoneNumber),
new PhoneNumber("+******"),
message1).create();
我遇到了这个错误:
Failed resolution of: Lorg/apache/http/client/config/RequestConfig
我看到了这个解决方案,但我不知道我应该把它放在哪里:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.4.1</version>
</dependency>
你能帮帮我吗?
【问题讨论】:
标签: java android twilio sendmessage