我尝试使用curl发送dirext twitter消息
curl-请求POST --url https://api.twitter.com/1.1/direct_messages/events/new.json --header'授权:OAuth oauth_consumer_key =“ YOUR_CONSUMER_KEY”,oauth_nonce =“ AUTO_GENERATED_NONCE”, oauth_signature =“ AUTO_GENERATED_SIGNATURE”, oauth_signature_method =“ HMAC-SHA1”, oauth_timestamp =“ AUTO_GENERATED_TIMESTAMP”, oauth_token =“ USERS_ACCESS_TOKEN”,oauth_version =“ 1.0”' --header'内容类型:application / json'
但是却收到{“错误”:[{“代码”:215,“消息”:“错误的身份验证数据。”}]} 错误有人可以帮我