lib/fmrest/spyke/model/auth.rb in fmrest-0.10.1 vs lib/fmrest/spyke/model/auth.rb in fmrest-0.11.0
- old
+ new
@@ -26,9 +26,17 @@
logout!
true
rescue FmRest::V1::TokenSession::NoSessionTokenSet
false
end
+
+ def request_auth_token
+ FmRest::V1.request_auth_token(FmRest::V1.auth_connection(fmrest_config))
+ end
+
+ def request_auth_token!
+ FmRest::V1.request_auth_token!(FmRest::V1.auth_connection(fmrest_config))
+ end
end
end
end
end
end