You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an escape hatch to just make a request with custom method/path/options?
I also need to update settings in the zone and it doesn't appear to be in there... unless I'm mistaken. I dont necessarily want to have to make PRs for every endpoint in the short term (just while library is being worked on, as it seems like WIP)
It will create a generic representation of the given resource (path). You can provide whatever arguments, e.g. with(parameters: {url parameters}) and then use Cloudflare::Representation.$http_method to do actual operations, e.g.
Let me know if you need more specifics. It's also fine to make PRs adding missing functionality. I wouldn't call this gem a WIP, but Cloudflare makes it extremely hard to test anything (there are no sandbox accounts), and so it's kind of on an as needed basis as users contribute.
Activity
ioquatix commentedon Sep 24, 2024
Yes, you can, e.g. something like this:
It will create a generic representation of the given resource (path). You can provide whatever arguments, e.g.
with(parameters: {url parameters})and then useCloudflare::Representation.$http_methodto do actual operations, e.g.cloudflare/lib/cloudflare/dns.rb
Lines 16 to 32 in 5bbec93
Let me know if you need more specifics. It's also fine to make PRs adding missing functionality. I wouldn't call this gem a WIP, but Cloudflare makes it extremely hard to test anything (there are no sandbox accounts), and so it's kind of on an as needed basis as users contribute.
9mm commentedon Sep 24, 2024
awesome, thanks!