The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IntPost Twitter Question
#1
Currently I am using a PuTTY to connect to a Linux server to run cURL
Code:
Copy      Help
str header=
F
;Authorization: OAuth oauth_consumer_key="{oauth_consumer_key}", oauth_nonce="{oauth_nonce}", oauth_signature="{oauth_signature}", oauth_signature_method="{oauth_signature_method}", oauth_timestamp="{oauth_timestamp}", oauth_token="{oauth_token}", oauth_version="{oauth_version}"
str cURL=F"curl --request 'POST' 'https://api.twitter.com/1/statuses/update.json' --data 'status={status}' --header '{header}'"
cURL.setfile("c:\cURL.sh")
RunConsole2("c:\putty.exe -load Twitter -ssh username@xxx.xx.x.xx 22 -pw password -m c:\cURL.sh" 0 "" 0)

I thought perhaps IntPost would work, but Twitter replies: {"error":"Could not authenticate with OAuth.","request":"\/1\/statuses\/update.json"}
Code:
Copy      Help
str header=
F
;Authorization: OAuth oauth_consumer_key="{oauth_consumer_key}", oauth_nonce="{oauth_nonce}", oauth_signature="{oauth_signature}", oauth_signature_method="{oauth_signature_method}", oauth_timestamp="{oauth_timestamp}", oauth_token="{oauth_token}", oauth_version="{oauth_version}"

IntPost("https://api.twitter.com/1/statuses/update.json" F"status={status}" str'responsepage header)
out responsepage

I'd like to figure out how to use QM to make the same post as using PuTTY to execute cURL command on the Linux box.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)