Hello everyone! I’m trying to use the low-code CD...
# help-connector-development
s
Hello everyone! I’m trying to use the low-code CDK for EmailOctopus, but have been getting 403 errors with simple requests — for debugging, how do I print the API request that’s generated by
Copy code
python main.py check --config secrets/config.json
? EmailOctopus ’s API docs say, “If you’re making a JSON request, include a
Content-Type: application/json
header.”
so I want to check what the actual requests being sent look like… 😄
s
try running with the
--debug
flag
Copy code
python main.py check --config secrets/config.json --debug
👍 2
s
@Sherif Nada thank you! Wondering if low-code CDK supports passing in the api key in the URL parameter rather than as part of the header? Seems like this is outside the options available for requester authenticators…
d
Yeah, you can pass the key as URL parameter. Here's an example implementation. You can check lines 6-13. The requester will add
api_secret
URL request parameter to all requests 🙂 Also, here's aibytes docs for the requester and more examples
🙏 1
s
ah, thanks very much!! 😄