Jump to content
Sign in to follow this  
Guest mrdavidlaing

GetNewsDetail for source dj fails with 404 error

Recommended Posts

Guest mrdavidlaing

There seems to be something wrong with the updated GetNewsDetail method as documented at https://ciapipreprod.cityindextest9.co.uk/ciapi.docs/#service.GetNewsDetail

Here is a code snippet that when run on https://ciapipreprod.cityindextest9.co.uk/tradingapi/?

var userName = "CC735158";
doPost('/session',{ "UserName": userName, "Password": "password"}, function (data, textCode) {
    setRequestHeader("UserName", userName);
    setRequestHeader("Session", data.Session);

   //Grab headlines
   doGet('/news/dj/UK?MaxResults=100');

   //Try to grab detail of first story - this throws 404
   doGet('/news/detail/dj/1349499');

});

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×