Yes, that should work as well. :)
Type: Posts; User: Mike Peat
Yes, that should work as well. :)
Yes. Basically it is just a matter of concatenating <username> ":" <password> and base64 encoding them.
So...
Function BasicAuthCreds String sUsername String sPassword Returns String
...
I could suggest that "[Found ~Found] Begin" might be replaced with "If (False) Begin" or maybe "If (True) Begin" (I can't remember just how multiple indicators are supposed to work ;)), although...
You are a bad man, Samuel! ;)
I can totally understand it - I'd be frightened to touch some of that code!
Mike
Stephen
Yes, I realise that (I've been in many of your lectures where you explained it ;)), but I thought it was interesting to note where DAW themselves relied on obsolete/deprecated syntax.
...
Just having a bit of fun (prompted by something I tripped over debugging), I did a "Find in Files" for the text "CompilerWarnings Off" in DF 20.1.
There were a few... ;)
C:\Program...
Luca
Try looking at the AddElementNS method of the cXMLDOMElement class (or indeed many other XML classes).
Mike
Ian
One problem with RESTGen is that if your sample JSON contains empty arrays it is forced to assume those are just arrays of strings (having nothing else to go on). Now I note that tagIds is...
Franco
I'd try removing the leading "/" in the sPath - it shouldn't be there.
Mike
Of cool "magic-bullet" software development methodologies, I have only this to say (with apologies to Brian Hanrahan of the BBC): "I counted them all out, and I counted them all back". ;)
Mike
In fact looking again at your post, I think that is exactly the problem. :)
Mike
Ian
Not sure if this is your actual problem, but the path argument to HTTPGetRequest should probably be just "v1/tag-groups" rather than the whole URL you are using.
The psRemoteHost setting in...
Giuseppe
If you'd like I can try to see if I can get it working here, but I'll need all the "secret" stuff you have (quite rightly! ;)) left out of your code posted here. If you want to send that...
Edgar
Check out https://www.youtube.com/watch?v=vDBXMPEgF7o. Might help.
Mike
Giuseppe
Well I'm not going to try to figure out all that PHP code - way too much work! ;)
What I'd try is (completely untested, obviously):
Use cHttpTransfer.pkg
Good luck! :)
If you need any help with the code just let me know.
Mike
Giuseppe
OK, so long as your parameters (those name=value pairs) are URL encoded (so conform to percent encoding for special characters) you should be able to put them in a string separated by &...
Right, first thing I note is that it makes a difference whether you are using GET or PUT.
If it is a GET, then the parameters are passed on the query string part of the URL as name=value pairs...
Giuseppe
OK, I'll take a quick look at GuzzleHttp. :)
Mike
DF v3.2b? New one on me! ;)
Giuseppe
(First disclaimer: I don't use cJsonHttpTransfer - I just use cHttpTransfer and cJsonObjects - and I don't know what is going on in the PHP GuzzleHttp module you are using.)
It looks...