diff --git a/duo_client/admin.py b/duo_client/admin.py index 369b845..455b203 100644 --- a/duo_client/admin.py +++ b/duo_client/admin.py @@ -3189,6 +3189,39 @@ def update_logo(self, logo): def delete_logo(self): return self.json_api_call('DELETE', '/admin/v1/logo', params={}) + def get_custom_branding(self): + """ + Returns current live custom branding. + + Raises RuntimeError on error. + """ + response, data = self.api_call('GET', + '/admin/v1/branding', + params={}) + return self.parse_json_response(response, data) + + def get_draft_custom_branding(self): + """ + Returns current draft custom branding. + + Raises RuntimeError on error. + """ + response, data = self.api_call('GET', + '/admin/v1/branding/draft', + params={}) + return self.parse_json_response(response, data) + + def get_custom_messaging(self): + """ + Returns current messaging. + + Raises RuntimeError on error. + """ + response, data = self.api_call('GET', + '/admin/v1/branding/custom_messaging', + params={}) + return self.parse_json_response(response, data) + def get_u2ftokens(self, limit=None, offset=0): """ Retrieves a list of u2ftokens