Hi,
The following URL, after basic authentication by user and password, and with header "application-json", happily returns an array in JSON when using Firefox's REST Addin. However, I do not see it in Excel when using the settings below. The user name and password are fictional for commercial reasons. As my code below fails, can you please advise the code to try?
Method = GET
https://newtemplate.hosts.webrecs.com/alfresco/service/webrecs/fundsearcher?full=trueHowever, in Excel, MsgBox returns:
Could find not data for query full=true-{"_deserialization":null}
Macro based on the HTTP authentication section plus modifying DuckDuckGo:
Public Sub webrecs_newtemplate_fundsearcher()
Dim cr As cRest
Set cr = restQuery("newtemplate_fundsearcher", "newtemplate_fundsearcher", _
, , , , , True, , , True, , "user.xx.yy", "pwordxyz")
generalQuery("newtemplate_fundsearcher", "newtemplate_fundsearcher", "full=true", True, True).tearDown
End Sub
In Function createREstLibrary
With .add("newtemplate_fundsearcher")
.add "restType", erRestType.erSingleQuery
.add "url", "
https://newtemplate.hosts.webrecs.com/alfresco/service/webrecs/fundsearcher?"
.add "results", ""
.add "treeSearch", False
.add "ignore", vbNullString
End With
In Sheet newtemplate_fundsearcher, the titles in each column are
title shortName description isSiteManager siteTheme
based on the JSON below:
- {
- "title": "xxx yyy zzz",
- "shortName": "mytest",
- "description": "",
- "isSiteManager": "true",
- "siteTheme": "hcCyan"
- }
(2) I could not find any documentation on generalQuery to define the final "True, True)" I am lost with the many modules and Find discovered "generalQuery" being used in so many macros. Can you please advise what the True are? Also, could you please advise where is generalQuery so I can find it and read more?
Thank you in advance.