Jan Christian Grünhage
ec8b893f6a
feat: migrate to api tokens
...
Cloudflare's v4 API provides three ways of authenticating,
with the API tokens being the new, standard conform, recommended
way. This patch removes the use of the old auth_key + email combo
and replaces it with API tokens.
BREAKING CHANGE: auth keys can't be used anymore, switch to api tokens
2020-04-20 23:04:31 +02:00
Rostislav Raykov
143bbb7a33
feat: Better report different HTTP status responses
2020-03-22 23:30:42 +01:00
Rostislav Raykov
7ceb5c3c50
feat: Update type of cloudflare response
...
Turns out that the results field can be null
2020-03-22 23:30:10 +01:00
Rostislav Raykov
cfd5cb9da9
feat: Use anyhow for error handling
2020-03-22 22:10:50 +01:00
Rostislav Raykov
536b184693
feat: Update usage to work with new versions of libs
2020-03-21 22:43:04 +01:00
Rostislav Raykov
b654f4523e
fix: Check the response object before trying to extract a dns record id from it
2019-09-23 10:58:04 +02:00
Rostislav Raykov
39cc9223d2
style: Format the code with cargo fmt
2019-09-18 11:12:50 +02:00
Rostislav Raykov
a61da424bf
fix: Correctly parse update response
2019-09-17 21:42:56 +02:00
Rostislav Raykov
6f5890a81b
fix: Remove whitespace from current IP
2019-09-17 18:28:26 +02:00
Rostislav Raykov
8e938e3299
refactor: Some renaming and using the status of the update operation
2019-09-17 18:00:30 +02:00
Rostislav Raykov
f01cba4dc5
feat: Add helper functions for network requests and caching
2019-09-17 17:33:35 +02:00