DopeLabs
DopeLabs
CDCloudflare Developers
Created by MELGEO9 on 10/29/2023 in #general-help
Cloudflare with websites
the site in cloudflare will need to be configured using some kind of real world reachable ip address... localhost or 127.0.0.1 is not that. you can use a proxy server that listens on the public ip and proxies to your localhost httpd though
125 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
i think it would also be handy if the api reference doc indicated what minimum level of account (free, paid, pro, etc) youd need to access each endpoint is =]
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
so im approaching almost 2000 lines now :/ and im about 3/4 of the way though all the endpoints...
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
its a difference of having to manually write code to handle each endpoint individually vs be able to programmatically walk the api using the information thats in the url alone as a means to knowing what values are needed.
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
so instead of referring to the value as identifier, requiring one to figure out what that means, just go ahead and identify it by useing the value name instead...
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
where as if the url was /accounts/{account_id}/rum/site_info/{site_tag}, i would know i need to get the 'id' value from /accounts, and the 'site_tag' value from /accounts/{account_id}/rum/site_info/list
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
but theres no way for me to know that just by looking at the url
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
and in this example the 'site_identifier' that i need... the value is actually named 'site_tag'
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
if i get the list of accounts by getting the following endpoint, there is no value in the returned objects thats named "account_identifier" https://api.cloudflare.com/client/v4/accounts/
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
its not that i cant find them.. its that i have to find them in the first place... i was trying to avoid having to code my script manually for each and every endpoint. "if" things were consistent, and used the name of the actual value needed for the url query, i could use a little bit of simple logic to programmatically walk the entire api to get all the data. but this is not the case. since {identifier} doesnt actually provide useful information, i am forced to manually write the functions for each and every endpoint, having to reference the api docs to know what value ill need for further requests. the 'Web Analytics' endpoint is one perfect example. https://api.cloudflare.com/client/v4/accounts/{account_identifier}/rum/site_info/{site_identifier} i can not look at that endpoint url and work out what the actual name of the values are that i need to populate in the url without having to look it up in the docs.
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
the values i mentioned are all the same only in the fact that the api is calling them an 'identifier', but the actual name of the value can be anything from 'id' to 'name' to 'tag'. . as i mentioned, referring to the value needed for the query as simply 'identifier' is completely useless. it forces the user to have to look through the docs to try and find the name of the actual value they need to use. this is incredibly annoying and an astounding waste of time.
21 replies
CDCloudflare Developers
Created by DopeLabs on 10/12/2023 in #general-help
Why is the cloudflare API such a dumpster fire of inconsistency?
ack, ty
21 replies