Jump to content

MichaelSDeVries

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

164 profile views

MichaelSDeVries's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Has anyone successfully developed integration with the E*TRADE API in AutoIt? If so, then would you be willing and able to share some of your AutoIt code to do so with me? and/or help me successfully develop an AutoIt interface with the E*TRADE API? Please also Reply at: http://blog.thevcf.com/forums/topic/etrade-api/#post-4032 Thank You and Have a Great Day! - Michael S. DeVries
  2. Hello again Fellow AutoIt Fans, I have again been (very frustratingly) trying to perform an automated Twitter Search via AutoIt, and … I believe that I have narrowed down the authentication issues, mentioned above, to something wrong in/with the hmac function in the aforementioned gen_sig_base function, as the Signature that the gen_sig_base function returns differs from that returned by the OAuth Tool using the same values for $epoch and $nonce. I have also tried converting the VBA code from https://greglib.org/tweeting-with-vba/ to AutoIt code, but the following statements are not returning the required Objects: $oAsc = ObjGet("","System.Text.UTF8Encoding") $oEnc = ObjGet("","System.Security.Cryptography.HMACSHA1") … so the Base64_HMACSHA1 function from there fails ;( Does anyone know how to fix those ObjGet statements above to successfully return the required Objects?, or better yet … Does anyone have any working AutoIt code that they are willing and able to share to successfully complete the oAuth Authentication with the Twitter API? Any and all of your responses and assistance with being able to successfully automate Twitter Searches using AutoIt would be Most Appreciated! Thank you for all of your help and participation and Have a Great Day! - Michael S. DeVries
  3. Hello Fellow AutoIt Fans, Does anyone have an example of some code, that they are willing and able to share herein, that actually allows you to successfully get an oAuth authentication and successfully perform a Search of Tweets using the Twitter API V1.1? I have tried using the code that DeltaRocked referenced in the Post at: However, I have discovered that the value of $nonce being returned by the statement = $nonce = StringTrimLeft(_Crypt_HashData($epoch & $sTwitter_oAuth_Consumer_key, $CALG_MD5), 2) in the gen_sig_base Function is different from the oauth_nonce returned by Twitter’s OAuth Tool at: https://dev.twitter.com/oauth/tools/signature-generator And even if I set $nonce equal to the oauth_nonce returned by Twitter’s OAuth Tool and $epoch equal to the oauth_timestamp returned by Twitter’s OAuth Tool, the $Signature returned by the statement = $Signature = hmac( $sTwitter_oAuth_Consumer_key & ':' & $sTwitter_ConsumerSecret, $SignatureBase, 'sha1') in the gen_sig_base Function is different from the oauth_signature returned by Twitter’s OAuth Tool … Does anyone know why? And I subsequently always get a response $sReturned ={"errors":[{"message":"Could not authenticate you","code":32}]}, @error =0 from the request using the values of $nonce and $Signature returned by the gen_sig_base Function. However, I was previously able to successfully get the Tweet Search results returned if I “hardcoded” the oauth_nonce and oauth_signature values returned by Twitter’s OAuth Tool into the request so … Does anyone know what is wrong in/with the gen_sig_base Function? And/or changed in the Twitter API V1.1? causing these authentication failures? And/or the values of $nonce and $Signature returned by the gen_sig_base Function being different from the oauth_nonce and oauth_signature values returned by Twitter’s OAuth Tool, for the same $epoch value? Any and all of your responses and assistance with being able to successfully automate Twitter Searches using AutoIt would be Most Appreciated! Thank you and Have a Great Day! - Michael S. DeVries
×
×
  • Create New...