Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
Finesse Developer Center
Overview
Documentation
Community
Blogs
Cisco Live Update
Theodore Phipps
17 May 2013
"Installing" the Finesse CUIC sample gadget
David Lender
16 Apr 2013
Getting Started with Finesse Gadgets
David Lender
16 Apr 2013
SampleGadget_WebService posted
David Lender
27 Mar 2013
SampleGadget_Logging gadget posted
David Lender
26 Feb 2013
Showing 1 - 5 of 22 results.
Items per Page 5
Page
(Changing the value of this field will reload the page.)
1
2
3
4
5
of 5
First
Previous
Next
Last
Forums
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to General Questions
RE: New Message from Absaar Javed in Cisco Finesse - General Questions: RE:
Threads [
Previous
|
Next
]
Absaar Javed
Posts:
18
Join Date:
1/14/13
Recent Posts
need to use "getCredentials(parameter);" method from finesse.js
Answer
2/15/13 7:54 AM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
I need to use "getCredentials(parameter);" method from finesse.js, to get username and password in a third party gadget for it's login and subscription, how can i access this method?
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Absaar Javed
Posts:
18
Join Date:
1/14/13
Recent Posts
RE: New Message from Absaar Javed in Cisco Finesse - General Questions: RE:
Answer
2/15/13 1:20 PM as a reply to Absaar Javed.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
or if I have to access 'user ID and password' via _config object, like
var userId=_config.id, var password=_config.password;
for my gadget, so that it can subscribe to finesse notifications, then how can I do this?
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
David Lender
Posts:
168
Join Date:
4/4/08
Recent Posts
RE: New Message from Absaar Javed in Cisco Finesse - General Questions: RE:
Answer
2/15/13 3:38 PM as a reply to Absaar Javed.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
getCredentials is used to extract the credentials from the config object. I found an example in the Finesse desktop:
//If the authorization string is provided, then use that to
//extract the ID and the password. Otherwise use the ID and
//password from the respective ID and password params.
if (_config.authorization) {
var creds = _util.getCredentials(_config.authorization);
_config.id = creds.id;
_config.password = creds.password;
You should be able to access the method by calling _util.getCredentials(_config_authorization);
Finesse client services are initialized with the config when the finesse gadget is loaded:
finesse.clientservices.ClientServices.init(finesse.gadget.Config);
Here is how you get the gadget config (from the SampleGadget_Final.js sample gadget):
// Configuration for the gadget
finesse.gadget.Config = (function () {
var _prefs = new gadgets.Prefs();
/** @scope finesse.gadget.Config */
return {
authorization: _prefs.getString("authorization"),
host: _prefs.getString("host"),
restHost: "localhost"
};
}());
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Collateral
No files available