我正在开发一个应用程序,希望用户点击一个按钮并向他/她的时间线发送一条推文。有几种已知的方法可以使用Node.JS和Angular完成这个功能,但我正在寻找一种不需要运行Node服务器就能实现我的要求的解决方案。
是否有一种方法可以将Twitter API嵌入您的IONIC / Angular应用程序中。我不需要Ionic插件TwitterConnect,因为它没有POST方法。
编辑: 这是Twitter的示例,但我该如何在Angular中实现它?
这里是链接https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update,由@Gonzalo Nicolás建议提供。 请问是否有人能够协助我提供文档或代码示例。
是否有一种方法可以将Twitter API嵌入您的IONIC / Angular应用程序中。我不需要Ionic插件TwitterConnect,因为它没有POST方法。
编辑: 这是Twitter的示例,但我该如何在Angular中实现它?
curl -XPOST
--url 'https://api.twitter.com/1.1/statuses/update.json?status=hello'
--header 'authorization: OAuth
oauth_consumer_key="oauth_customer_key",
oauth_nonce="generated_oauth_nonce",
oauth_signature="generated_oauth_signature",
oauth_signature_method="HMAC-SHA1",
oauth_timestamp="generated_timestamp",
oauth_token="oauth_token",
oauth_version="1.0"'
这里是链接https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update,由@Gonzalo Nicolás建议提供。 请问是否有人能够协助我提供文档或代码示例。