If connecting as a user, you will need to relevant user token, as well as the app key and app secret for the application from which the call is being made. The WWClient can be instantiated by calling the static method WWClient.buildClientApplicationAccess(userToken, appId, appSecret, authenticationEndpoint)
. The userToken is a string value passed back from full authentication via a browser. Once built, the WWClient can be authenticated. Once authenticated, all relevant Watson Work Services calls can be made.
public void getMe() throws WWException, UnsupportedEncodingException { // Note, the below values are not valid ones! WWClient client = WWClient.buildClientUserAccess("ricoZt", "5c0bf268-c363-4aae-bbec-e2dbebb2fb72", "vKTpM47ST8ME9gQ9iWt_VjknvMCW", new WWAuthenticationEndpoint(), "https://openntf.org"); client.authenticate(); assert("Paul Withers".equals(me.getDisplayName())); }
Authentication as a user returns a PeopleToken
which is passed to the authenticationResult
property of the WWClient
. This includes setting the expiry date for authentication. Subsequent calls using the same WWClient
object will check whether the expiry date has passed, in which case it will re-authenticate.
38 Comments
Anonymous
how do we get the initial user code?
that "ricozt" in your example?
Anonymous
This is very interesting, I like it. I will always come to visit after. I will recommend to friends too. Keep up the magnificent work. I think this is engaging and eye-opening material. rospher essays Thank you so much for caring about your content and your readers.
Anonymous
This became very easy to understand the static method and a lot of things to do like completing your projects, Custom dissertation help, and papers. Everything has to be managed through apps.
Anonymous
Thanks for the post and really it can be understood and Blade Runner Coat the content is good and I really appreciate the article. Appreciable!
Anonymous
This is very useful code for all students who learning programming. I definitely share this data with my students who are taking assignment writing service from me. Ida Wallace, assignment writing service provider at Assignment Help Folks. http://www.assignmenthelpfolks.com/finance/
Anonymous
I am thankful to you for providing here sample code block for WWClient object which will check whether the expiry date has passed, in which case it will re-authenticate. It will actually sharable information for IT learners whom I am also serving dissertation assistance at Dissertation Help - http://www.dissertationhelp.uk/ in UK. And hope it would be helpful for them.
Anonymous
Such wonderful blogs with almost all the current scenarios intact. We are the best Cleaning Company in Dubai, YallaCleaning fills in as the solid, trusted and disentangled cleaning center for the Middle East cleaning industry.
Anonymous
This article is well written and very informative. I really like this site because it offers loads of information to its followers. Furniture Rentals in Dubai bring for your luxury rental furniture. So contact us to get the best offer on furniture rentals also get detail of our furniture rental in Dubai to enjoy our rental furniture services.
Anonymous
i appreciated your hard work and content writer, Its very interesting and informative article for me. I would love to share your article to other platforms. Assassin's Creed Jacob Frye Costume Thanks for sharing!
Anonymous
This is so informative post. You shared here such a helpful information about Java with the code.
Regards,
Caroline Webb
http://www.assignmenthelpfolks.com/marketing/
Anonymous
Case Study Writing Service Provider are not that expensive for Custom Case Study Writing Services since they complete high standard Case Study Assignment Services?
Anonymous
Personally I am so happy to found this beautiful post. I think this information will helpful for all because you describe with the sample code.
Regards, Alyssa Patterson,
http://www.secureassignmenthelp.com/health-care-assignment-help/
Anonymous
It is understandable that one is more confident when their task is in the hands of the Professional Essay Writing Help than a novice; thus, one hires Essay Writing Assignment Help Writer who delivers the ideal Custom Essay Paper
Anonymous
Do you require Affordable Nursing Research Papers Services for your assignments’ needs, but you are unsure of the Legitimate Nursing Research Paper Writing firm to contract? Our Nursing Research Paper Writing Company has credibility and has been providing homework solutions.
Anonymous
I am happy to found this very informative blog about sample code block for WWClient. Thanks for sharing with us.
-Alex Juvion, http://www.qualityassignment.co.uk/marketing-coursework-help/
Anonymous
I like this website because I always get innovative stuffs from this website. I think this is very useful for all you shared here regarding sample code block for WWClient.
William Riley,http://eliteassignment.co.uk/finance-assignment-help/
Anonymous
Facing plumbing issues? Searching for Emergency Plumbers Near Me? Call our experts and get the best solutions without hurting your pocket.
Anonymous
Get the finest Dish TV service provider, monthly price and channels with us? Contact us round-the-clock for the best Dish TV Near Me service.
Anonymous
When the writers are working on Psychology Research Paper Writing Services, they have to ensure they conduct thorough Psychology Research Paper Writing Services on the topic areas in order to complete the best Custom Psychology Research Paper Services using recent sources.
Anonymous
Ist really informative and helpful article for me, I appreciate your hard work and skills. I'm waiting for more posts like this. Freddie Mercury Yellow Jacket Thanks for sharing!
Anonymous
We are a leading Cleaning Services Company based in Dubai with an outstanding reputation for quality and integrity throughout Dubai, we provide Cleaning Services that includes Premium Office and Residential Cleaning Services at very competitive prices.
Anonymous
We are the best online dissertation help services for college students in UK.
Anonymous
Purchase healthcare research paper services and healthcare coursework writing services since students find help when they visit Healthcare Essay Writing Services.
Anonymous
We shall never know all the good that a simple smile can do. Please share great things with me run 3
Anonymous
A Halloween occasion is only a normal yearly occasion for a considerable lot of us. However, for a few, this is the most anticipated season. On the off chance that you consider Halloween Online Store yourself the not many that affection to simply dress in an ensemble, be pleased with it.
Anonymous
I am enjoying after go through and must be share in my followers. Have a nice day
https://www.jacketsjunction.com/product/dave-annable-yellowstone-brown-cotton-jacket/
Anonymous
I am glad to see this brilliant post, all the details are very helpful and useful for us, keep up to good work. Used cars for sale!
Anonymous
I am happy to get this now because each and every content are too readable and informative. thanks to share a nice post.
taxi driver jacket
Anonymous
happy to get it now finding a lot of type that type of blog and now have this. thanks
taxi driver jacket
Anonymous
Really interesting blog. It is very informative article and it helped me alot Blade Runner Coat
Anonymous
Thank you for this great contribution, I find it very interesting and well thought out and put together. I hope to read your work in the future. Cyberpunk 2077 Jacket
Anonymous
SonneriePro est le meilleur fournisseur de sonnerie mobiles gratuites pour Android 2020. Sonneries Samsung, sonneries SMS, sonneries iphone, meilleures nouvelles sonneries 2020. Vous pouvez le télécharger facilement et entièrement gratuitement.
Anonymous
Sonneries de téléphone portable pour téléphones Android Samsung Mais cela calme aussi votre âme. Les sonneries de téléphone portable sont l'une des sources de divertissement les plus populaires et une partie indispensable des gens d'aujourd'hui. Les sonneries de téléphone portable vous apportent à la fois joie et tristesse. SonneriePro - Les meilleures sonneries gratuites pour iPhone, sonneries Samsung pour Android, sonneries mobiles gratuites dans le monde.
Anonymous
I find it awesome with free sound effects for phones https://sonidosmp3.net/
Anonymous
Good post thanks for share information.
https://whizzherald.com/
https://talesbuzz.com/
https://www.techwithgeeks.com/
https://www.bulletintech.com/
https://alternativestips.com/
Anonymous
I always appreciated your work, your creation is definitely unique.
https://educationisaround.com/
https://theeducationlife.com/
https://geteducationskills.com/
https://edublackboards.com/
Anonymous
Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome!j sale
Anonymous
I trust you post again soon... Jonas Kahnwald Jacket
Add Comment