Help with Excel Web Query with Pinnaclesports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pringles
    SBR Rookie
    • 11-26-12
    • 41

    #1
    Help with Excel Web Query with Pinnaclesports
    Hi, i have a problem using Pinnaclesports feed.
    I used to scrape Pinnacle API with Excel Web query and have a parser built for manipulation


    I didnt use Excel for months ... in december they introduced that API Key Authentication is being replaced with HTTP Basic Authentication


    Anyways now i got back to my excel stuff and obviously im having trouble scraping pinacle xml feed at the moment


    Last time i would do something simple like this in Excel Web Query + would add my API key in the URL :


    https://api.pinnaclesports.com/v1/feed?sportid={sportid}&leagueid={leaguei d}&last={last}&oddsformat={oddsformat}&i slive={islive}&currencycode={currencycod e}


    Now i need to put this coded username and password somewhere in the URL and i dont know where exactly and support wont help me with XML issues...


    Only this text is in Pinnacle´s API FAQ


    "
    Authentication


    Always use HTTPS to access the API.
    API use HTTP Basic access authentication. You need to send HTTP Authorization header for all API commands . The Authorization header is constructed as follows:


    1. Username and password are combined into a UTF-8 string "clientidassword"
    2. The resulting string literal is then encoded using Base64
    3. "Basic " is then put before the encoded string.


    For example, if the client id is 'Aladdin' and password is 'open sesame' then the header is formed as
    follows:
    Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
    "


    So how do i input my username and password into the URL ...

    Thanks guys
  • pringles
    SBR Rookie
    • 11-26-12
    • 41

    #2
    Cmon such a simple thing, most of you use pinny API .
    Comment
    • hotcoffee76
      SBR Rookie
      • 03-25-14
      • 45

      #3
      Sorry I don't have a full answer but a quick google check looks like you need to write some VBA code. The issue is that you need to set the authentication details in the http request header - they can't be passed as URL parameters.

      Maybe this helps:

      Blogger is a blog publishing tool from Google for easily sharing your thoughts with the world. Blogger makes it simple to post text, photos and video onto your personal or team blog.
      Comment
      • sKaaaaY
        SBR Rookie
        • 10-08-14
        • 1

        #4
        I'm sorry but I have the same problem.
        Is someone hier who is able to give me an example?

        Thanks
        Comment
        SBR Contests
        Collapse
        Top-Rated US Sportsbooks
        Collapse
        Working...