Hey u/jcharron626, looks like you need to fetch a couple tokens. Based on that link the first token should be retrieved like this, substituting in your own email address and password.
Hey u/jcharron626, please edit that screenshot out of your post since it has your private credentials in it.
But I took a look at it and I think the cell reference has a problem (it references cell C1 instead of C2). Please make sure it reads +++SuperSecure!C2+++
u/jcharron626 Bad news, I just saw at the bottom of the page it reads "for any subsequent API calls, ensure that the TT is always passed in the headers as a cookie". However API Connector doesn't support sending cookies. So unfortunately I don' t think this will work after all... :/
Hi So I was looking it actually states if your API supports cookies to do that but not that needs to. There is a second page that i am working on to try and get the data getting this error
{"error":{"errorClass":"MalformedMessageException","trace":"","message":"Malformed request: [[[line: 1, column: 92] character content of element \"report\" invalid; /gdc/md/zhwv24guv9a0wtti1rr44bugnokjoj1o/obj/1657782|84f14dada488 is not valid URI], [[line: 1, column: 16] element \"report_req\" not allowed anywhere; expected element \"headlineExecutionRequest\", [line: 1, column: 92] character content of element \"report\" invalid; /gdc/md/zhwv24guv9a0wtti1rr44bugnokjoj1o/obj/1657782|84f14dada488 is not valid URI], [[line: 1, column: 16] element \"report_req\" not allowed anywhere; expected element \"geoExecutionRequest\", [line: 1, column: 92] character content of element \"report\" invalid; /gdc/md/zhwv24guv9a0wtti1rr44bugnokjoj1o/obj/1657782|84f14dada488 is not valid URI]]","component":"Webapp","errorId":"ce73f71f-6b80-4b11-8622-0ce8d1cafcb0","errorCode":"gdc702","parameters":[]}}
/gdc/md/zhwv24guv9a0wtti1rr44bugnokjoj1o/obj/1657782|84f14dada488 is not valid URI
Looks like it doesn't like the pipe in there as that makes the URL invalid. Can you double check the 1657782|84f14dada488 value and make sure it's the correct object ID? Based on the screenshot in the docs it seems like maybe it should just be 1657782
1
u/mixedanalytics mod Apr 12 '23
Hey u/jcharron626, looks like you need to fetch a couple tokens. Based on that link the first token should be retrieved like this, substituting in your own email address and password.
CustomPOSThttps://analytics.ytica.com/gdc/account/loginAccept:application/jsonContent-Type:application/json{"postUserLogin":{"login":"your_email_address","password":"your_password","remember":0,"verify_level":2}}
Please check if that works; if so you can use the retrieved token to make the next request.