Chilkat wrapper highlights (off the top of my head)...

Wrappers are VCX classes. For a Chilkat method, there's a corresponding VFP
method with a header containing some pertinent info, like a one line
description, followed by the full online description for that method. If a
method parameter accepts a 0/1 parameter, you can pass a VFP .F./.T. with a
property setting on the object. If the method returns a 0/1, another
property setting will return a .F./.T. for your convenience.
The code for the method is very straightforward and plain to aid
understanding. Lotsa side stuff handled in other methods.

Properties all have hidden access and assign methods. The access method
will contain the online Chilkat description for that property. The access
and assign methods (in essence) route the call to their Chilkat equivalent
type methods - LongBit, LongBitReadOnly, String, StringReadOnly, etc. - but
that's all beneath the sheets. This is done to save on coding...as it is
I'm already up to 15 megs or so, probably 85% comments of one form or
another.

Both properties and methods will do version testing if required -- methods
will test within the method itself while the property version number will
be passed as a parameter.

There's also object version testing where necessary. For instance, the Rest
control came out in version 9.5.0.58. If you're on version 9.5.0.57, you
don't have this class!

If you peruse the property sheet you'll see whatever description I could
fit in the space.

Undocumented/decremented properties/methods/class(es) have all been added.
Where I could find documentation I added it. It looks like there were
methods and properties that returned or passed VFP DateTime values that are
now not documented. I've pointed them out where I could.

On Sat, Jul 9, 2022 at 5:04 PM Bill Anderson <[email protected]> wrote:

> >> A Foxpro wrapper would be too much to hope for, but that would be even
> better if it is exists.<<
>
> It exists, you haven't seen it yet. I'm working on a VFP tool that wraps
> *everything* in the Chilkat library. Over halfway done. There's 103 classes
> (1 deprecated) and I've wrapped maybe 61 of them?
>
> I too experienced *exactly* what you experienced re: Chilkat. The upside -
> They do document well. The downside? They document well. It's all on one
> web page per class and hard to see the big picture. To their defense, I
> don't necessarily have a better way to display such information on the web.
>
> Rest is one of the classes I've wrapped, FWIW but that may not necessarily
> help clarify your issue. If you think it might, just send me an email - or
> I'll take a look at it.
>
> If I complete the wrapping I may do something similar with their example
> code.
>
> Bill Anderson
>
> On Sat, Jul 9, 2022 at 10:46 AM Paul H. Tarver <[email protected]> wrote:
>
>> I have a spec project where I need to build an application using a REST
>> API
>> to extract data elements and then post those data elements to a different
>> system. The API requires me to get a token upfront (which has a
>> five-minute
>> life span), issue my requests with the token and then get the results back
>> in a JSON or XML format. Based on recommendations I received at the
>> Virtual
>> FoxFest earlier this year, I purchased the Chilkat tools and dove into
>> what
>> has turned out to be the deep end without knowing how to swim. The
>> documentation at Chilkat while extensive is almost too extensive for me to
>> understand exactly what I've got to do to make this work.
>>
>>
>>
>> So far, I've been unable to even get a token back. All I seem to be able
>> to
>> get back from the server is
>>
>>
>>
>> 400 Bad request
>>
>> Your browser sent an invalid request.
>>
>>
>>
>> That response has been less than helpful. I've reached out to the API
>> Provider but their answers are focused on requests issued after I get the
>> token.
>>
>>
>>
>> My question is this: Does anyone have any sample Foxpro code they use for
>> a
>> similar process (Request a token, then make requests with the token) using
>> the Chilkat tools they would be willing to share? A Foxpro wrapper would
>> be
>> too much to hope for, but that would be even better if it is exists. I've
>> got to get to a point where I'm beyond this initial stage to prove I can
>> make this work.
>>
>>
>>
>> Help! I know this is possible, but so far, I'm not making much headway.
>>
>>
>>
>> Paul H. Tarver
>> Tarver Program Consultants, Inc.
>>
>>
>>
>>
>>
>>
>>
>> --- StripMime Report -- processed MIME parts ---
>> multipart/alternative
>>   text/plain (text body -- kept)
>>   text/html
>> ---
>>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/ca+o1enhnovgrqlcf0nxhoxsc3bmwgo2kjer43tbk5nk4j2b...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to