From 33a0362524522eb389ab012b6f3fe4d8aaa484d3 Mon Sep 17 00:00:00 2001 From: Drew Warren Date: Tue, 20 Jun 2017 16:24:13 -0600 Subject: [PATCH] WIP Manual Renew Function --- oauth3.domains.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/oauth3.domains.js b/oauth3.domains.js index 2b5b0b0..ce72f40 100644 --- a/oauth3.domains.js +++ b/oauth3.domains.js @@ -45,6 +45,22 @@ OAUTH3.api['domains.list'] = function (providerUri, opts) { }); }; +/* TODO: Manual Renew Function +OAUTH3.api['domains.extend'] = function (providerUri, opts) { + var session = opts.session; + + return OAUTH3.request({ + method: 'POST' + , url: OAUTH3.url.normalize(providerUri) + + '/api/com.daplie.domains/accounts/' + session.token.sub + '/registrations' + , session: session + , data: opts.data + }).then(function (res) { + return res; + }); +}; +*/ + OAUTH3.api['ns.list'] = function (providerUri, opts) { var session = opts.session; var domain = opts.domain;