Search found 17 matches

by gnewcomb
Mon Mar 19, 2018 7:07 am
Forum: eXpress++ Support
Topic: need assistance with POST url for DHL label generation api
Replies: 13
Views: 21157

Re: need assistance with POST url for DHL label generation a

I passed this along to Alaska support. Below is their response. Dear Mr. Newcomb, Unfortunately, the reason that your sample does not work as expected has its root cause in an issue in the HttpClient class and the way parameters are being handled. The issue will be fixed as soon as possible. We hope...
by gnewcomb
Tue Mar 13, 2018 7:32 am
Forum: eXpress++ Support
Topic: need assistance with POST url for DHL label generation api
Replies: 13
Views: 21157

Re: need assistance with POST url for DHL label generation a

I don't think it is a token expiration issue. Below is the json for a new token I just generated. {"meta":{"timestamp":"2018-03-13T10:16:30-04:00","code":200},"data":{"access_token":"9WtrPTkTRF3p1Ehc41PUvPymzvp2VeyLXeToljiA7qGfoyXSomBKOpDLt5j2RcoNC6ssXYCok4y55kGEz2TAh3Vc6YqPedExx0ipn9w7Gqw5JPvLYT3kv...
by gnewcomb
Mon Mar 12, 2018 3:01 pm
Forum: eXpress++ Support
Topic: need assistance with POST url for DHL label generation api
Replies: 13
Views: 21157

Re: need assistance with POST url for DHL label generation a

I get the same result when running from Xbase++, however when I run from Chrome I get a 404 - File not found.
You need to do a POST instead of GET on the url. I am using the Postman app and it works correctly.
by gnewcomb
Mon Mar 12, 2018 2:17 pm
Forum: eXpress++ Support
Topic: need assistance with POST url for DHL label generation api
Replies: 13
Views: 21157

Re: need assistance with POST url for DHL label generation a

Same result using "https://api.dhlglobalmail.com/v2/label/multi/image.json" I assume alaska adds on the .json based on the content type. I tried LoadFromUrl also and get the same result. Could it have anything to do with the charset being used? I tried oHC:httpRequest:setParameter( "access_token", C...
by gnewcomb
Mon Mar 12, 2018 1:14 pm
Forum: eXpress++ Support
Topic: need assistance with POST url for DHL label generation api
Replies: 13
Views: 21157

Re: need assistance with POST url for DHL label generation a

oHC:httpRequest:getQueryString()=access_token=XQlO0HszO4NB/pyHrdyeLGPeQO59X7iWVT1FOWt6Ok6foyXSomBKOpDLt5j2RcoNC6ssXYCok4y55kGEz2TAh3Vc6YqPedExx0ipn9w7Gqw5JPvLYT3kv8CEf2sbHt7W+g/SlhtL5ajbF/WF2ucXl8TYAqz1fa9zf22XCCG8s/MM2qlkiyq/yM1stXSrdKjyq+raNvdwLifynpQ3EaeXA4IDbV1kjaGiUwgSSLLIKto=&client_id=28363 ...
by gnewcomb
Mon Mar 12, 2018 12:33 pm
Forum: eXpress++ Support
Topic: need assistance with POST url for DHL label generation api
Replies: 13
Views: 21157

need assistance with POST url for DHL label generation api

I am getting an INVALID TOKEN response running the POST request in the below code. What am I doing wrong? PROCEDURE Main LOCAL oHC, cAccessToken, cJS, cResult cAccessToken := "XQlO0HszO4NB/pyHrdyeLGPeQO59X7iWVT1FOWt6Ok6foyXSomBKOpDLt5j2RcoNC6ssXYCok4y55kGEz2TAh3Vc6YqPedExx0ipn9w7Gqw5JPvLYT3kv8CEf2sb...
by gnewcomb
Sat Mar 10, 2018 6:33 pm
Forum: eXpress++ Support
Topic: JSON parser
Replies: 2
Views: 6368

JSON parser

What are the currently available options for parsing a JSON string? Did DC_JS2ObjectTree() ever materialize or is there something else?
by gnewcomb
Thu Apr 27, 2017 7:20 am
Forum: eXpress++ Support
Topic: resizing bitmap to fill main dialog window
Replies: 2
Views: 6174

resizing bitmap to fill main dialog window

Could someone post a short example of how to use a bitmap for the background of the main dialog window and have the bitmap resized to fill ( not tiled ) the dimensions of the dialog window? The main dialog window will be different sizes depending on the users monitor resolution. I am wanting to crea...
by gnewcomb
Wed Oct 12, 2016 8:01 pm
Forum: eXpress++ Support
Topic: behavior of dc_dbseek using softseek with dc_setscopearray
Replies: 4
Views: 8727

Re: behavior of dc_dbseek using softseek with dc_setscopearr

I was just wondering if I was using DC_SetScopeArray() as it was intended. I am creating a subset of "filtered" records using a controlling index and would still like to be able to search on the controlling index. My next question was going to be why does DC_DbSeek() not seek using aScopeArray when ...
by gnewcomb
Wed Oct 12, 2016 2:09 pm
Forum: eXpress++ Support
Topic: behavior of dc_dbseek using softseek with dc_setscopearray
Replies: 4
Views: 8727

Re: behavior of dc_dbseek using softseek with dc_setscopearr

Shouldn't it move to the next record in the scope array past the cKey value? If you added the 3 lines below to DC_DbSeek would that work? FUNCTION DC_DbSeek(cKey, lSoftseek, cIndexTag, lSeekLast, xDataSource ) LOCAL lFound := .f. LOCAL xScopeTop, xScopeBot LOCAL lExact, xValue, i, xCargo LOCAL aScop...