Skip to content

Instantly share code, notes, and snippets.

@timhall
Created November 9, 2014 02:03
Show Gist options
  • Save timhall/bab59824216aefb5f61b to your computer and use it in GitHub Desktop.
Save timhall/bab59824216aefb5f61b to your computer and use it in GitHub Desktop.
Excel-REST Basic Authentication
' Create Client
Dim Client As New RestClient
Client.BaseUrl = "https://..."
' Create HttpBasicAuthenticator
' https://github.com/timhall/Excel-REST/tree/master/authenticators
Dim Auth As New HttpBasicAuthenticator
Auth.Setup "Username", "Password"
' Add Authenticator to Client
' -> All requests client makes will use basic authentication
Set Client.Authenticator = Auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment