Graphics

 View Only
  • 1.  Election Data & AP News API

    Posted 24 days ago

    Is anyone using AP's API for election data for Xpression? I'm having problems with how AP has changed how the API works. You now have to do a "request header" and no longer have it all in the URL. 
    I'm using the RSS/http datalinq option and I have everything in the OAuth2 configuration working but when put the URL in settings to pull the race I need and view the browse I get nothing. But I can see it when I test it on the OAuth tab. 

    Any help would be appreciated. Thank you. 



    ------------------------------
    Eric Rodriguez
    ------------------------------


  • 2.  RE: Election Data & AP News API

    Posted 23 days ago

    Hi Eric!

    Do you have the documentation they've provided you? The only things I can see from the AP website say that you need to include the 'x-api-key' header along with your API key, not necessarily using OAuth2. This can be done by going to the custom headers section in the RSS/HTTP Datalinq (should be 2nd tab), and adding a new pair. The key/name is x-api-key, and the value is your personal api key.



    ------------------------------
    Zachary Fradette
    United States
    ------------------------------



  • 3.  RE: Election Data & AP News API

    Posted 23 days ago

    Hello Zachary
    I totally missed that section on the second tab. It works great and I'm seeing the data. Thank you again for the help. 



    ------------------------------
    EricRodriguez
    ------------------------------