Morning Chris - I wanted to let you know. I figured this out. The have different requirements for the various subdomains that provide API services. On one subdomain basic authentication is as you describe. On another they use base64 encoding on the word "Basic" as well as the user/pass. As you...
Thanks again Chris - I was told by API support to ignore the cookie. Thanks for setting me straight on the correct format for the authentication. Richard
Chris Thank you very much for your help. That makes sense that what I am receiving in a webpage. When I try your code I receive status code of 401 - unauthorized. Here is the documentation that I received for the API call using a slightly different url:
var client = new HttpClient();
var...
Hi everyone,
I don't seem able to figure out how to find the correct response for this particular API server. I am supposed to receive this json:
{
"species": "MjAyMS0wNi0wOFQxMToxMzoxNVpbR01UXQ",
"breeds": "MjAyMS0wNi0wOFQxMToxMDo0M1pbR01UXQ",
"genders"...
Chris - no this field is not nullable - I have plenty of records where this field is empty but not set to NULL. I will probably not have time to look at using the Debugger or the Coverage Profiler until next week. I will keep you posted. Thanks again to Chris & Mike.
God Morning Chris,
Hopefully I will have some time next week to dig into this. So let me be sure that I understand your last paragraph correctly. "ShellExecute() returning a value less than 32 does not trigger a VFP error event" Do I have that right? Let me try the coverage log and see what I...
Thanks again Chris - I thought about and looked into the option of not using ShellExecute a couple of days ago and rejected the idea due to the fact that there is an over 20-year tradition of opening pdfs [and other types of documents] using the ShellExecute virtue of respecting the Windows file...
Morning guys,
When the problem cropped up, I tried the code with & without ALLTRIM() and it did not make a difference. The fields that the file path/name are stored in are standard VFP character fields. I also tried mimicking the method code from the other area of the app where these same pdf...
Thanks guys - No I agree it does not make sense. To clarify the 23 & 27 are the numeric return codes from ShellExecute if I capture & display them and they then display as the above posted VFP error 12. Mike, I decided to follow your above line of thought "Hang on. The document opens normally...
Mike thanks again. Here is what it looks like. My app uses the Codemine framework so the framework is trapping the error and this is the display. Variable '23' is the numeric return code from ShellExecute().
New Information: Occasionally restarting Windows gets rid of the error for a while...
Thanks guys,
Mike - you are correct I did not display trapping the ShellExecute return code. But I am doing exactly as you indicated when I am running in diagnostic mode. Also, I came across your excellent Introducing ShellExecute from 2002 in FoxStuff. Excellent overview.
New information -...
Morning guys,
Mike - I have trapped the error I receive either a 23 or a 27 return code. This is what I was referring to as an API error.
Chris - these are full paths like d:\vvllabpath\file_name.pdf. Drive letter substitution is used so no UNC server references are used.
Thank you. Richard
Hi all - I'm puzzled by this one and not been able to come up with an answer to what I am observing. I have used ShellExecute to open documents [pdf, doc, jpeg] in my app for 20 years with no problems and no errors. I instantiate ShellExecute in my main.prg and use it throughout the app...
Chris - I was able to use your code and it is working perfectly. I also found that I had a typo in the url as well. Thanks to all for your assistance & advice. Much appreciated.
Richard
Good morning all - yes you are all correct - this API is expecting JSON. I do have some documentation and a help desk to support me, but they have no knowledge of VFP. I will give your ideas a whirl and see if I can get this to work and report back. Thanks again for your help.
Richard
Hi All,
I am trying to format this example for VFP:
URL: http://onlineapi-onboard.antechdiagnostics.com/api/v1.1/Users/login BODY: {
"ClinicID": "134727",
"UserName": "PIMS_USER",
"Password": "devtest"
}
I believe that the parameters are passed as...
Chris,
Not at all, I enjoyed the discussion, and learned a bit on a topic which I had no knowledge of as old-school desktop developer. In addition, I am curious about a line in one of your above posts.
So... If I were to get that code placed on the server, I could forget about all of this...
Morning guys,
Maybe this is becoming a case of be careful what you ask for but nonetheless, it's all very interesting. Chris, I completely support the idea of managing the cache via a proper server request rather than cache-busting, but I was unable to get it to work and I need to move on. Here...
OK - I tried the West Wind wwHttp control and it works perfectly, it retrieves fresh data after each underlying server data change. The only downside to this control is addition of new libraries to the application and the licensing fee for the library [more than just this control] [$279]...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.