Page tree
Skip to end of metadata
Go to start of metadata

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.

Sample Code Block
 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(), "");
    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.


  1. Anonymous

    how do we get the initial user code?

    that "ricozt" in your example?

  2. 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.

  3. 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.

  4. 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!

  5. 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.

  6. 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 - in UK. And hope it would be helpful for them.

  7. 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.

  8. 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.

  9. 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!

  10. Anonymous

    This is so informative post. You shared here such a helpful information about Java with the code.


    Caroline Webb

  11. 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?

  12. 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,

  13. 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

  14. 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.

  15. Anonymous

    I am happy to found this very informative blog about sample code block for WWClient. Thanks for sharing with us.

    -Alex Juvion,

  16. 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,

  17. Anonymous

    Facing plumbing issues? Searching for Emergency Plumbers Near Me? Call our experts and get the best solutions without hurting your pocket.

  18. 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.

  19. 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.

  20. 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!

  21. 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.

  22. Anonymous

    We are the best online dissertation help services for college students in UK.

  23. Anonymous

    Purchase healthcare research paper services and healthcare coursework writing services since students find help when they visit Healthcare Essay Writing Services

  24. Anonymous

    We shall never know all the good that a simple smile can do. Please share great things with me run 3

  25. 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.

  26. Anonymous

    I am enjoying after go through and must be share in my followers. Have a nice day

  27. 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

  28. 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

  29. Anonymous

    happy to get it now finding a lot of type that type of blog and now have this. thanks

    taxi driver jacket

  30. Anonymous

    Really interesting blog. It is very informative article and it helped me alot Blade Runner Coat

  31. 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

  32. 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.

  33. 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.

  34. Anonymous

    I find it awesome with free sound effects for phones

  35. 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

  36. Anonymous

  37. Anonymous

    I read this article. I think You put a lot of effort to create this article. I appreciate your work.

    RDR2 Pearson Scout Jacket

Write a comment…