2017-08-15 15:37:37 +00:00
|
|
|
app.controller('emailCtrl', [
|
2017-09-01 20:50:33 +00:00
|
|
|
'$scope', '$q', 'Auth', 'azp@oauth3.org', '$timeout'
|
|
|
|
, function ($scope, $q, Auth, Oauth3, $timeout) {
|
|
|
|
var vm = this;
|
|
|
|
|
|
|
|
vm.getSettings = function () {
|
|
|
|
var pkg = Auth.oauth3.pkg('email@daplie.com');
|
|
|
|
return pkg.settings().then(function (resp) {
|
|
|
|
vm.settings.service = 'mailgun.org';
|
|
|
|
vm.settings = resp.data;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
vm.getSettings();
|
|
|
|
}
|
|
|
|
]);
|