# Need a GIT Hub java code example which uses the java sdk to access cumulocity apis

**URL:** <https://community.cumulocity.com/t/need-a-git-hub-java-code-example-which-uses-the-java-sdk-to-access-cumulocity-apis/382>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [June 16, 2022, 8:53am UTC](https://community.cumulocity.com/t/need-a-git-hub-java-code-example-which-uses-the-java-sdk-to-access-cumulocity-apis/382 "2022-06-16T08:53:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)\
**Post date:** [June 16, 2022, 8:53am UTC](https://community.cumulocity.com/t/need-a-git-hub-java-code-example-which-uses-the-java-sdk-to-access-cumulocity-apis/382/1 "2022-06-16T08:53:55Z")

</div>

#### What product/components do you use and which version/fix level?

Cumulocity sdk for java

#### Are you using a free trial or a product with a customer license?

customer license

#### What are trying to achieve? Please describe in detail.

Need a GITHub java code as sample which uses the java sdk to access cumulocity apis like measurements, inventory, managedobjects, users etc as their java representations in the project.  
Also if someone could let me know how to import and use the MeasurementRepresentations and other Representations instead of using Java RestTemplate calls

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

N/A

#### Have you installed latest fixes for the products

N/A

---

<div class="post-metadata">

**Author:** ![Michael\_Voigt2](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/michael_voigt2/32/18431_2.png) [@Michael\_Voigt2](https://community.cumulocity.com/u/Michael_Voigt2)\
**Post date:** [June 16, 2022, 9:08am UTC](https://community.cumulocity.com/t/need-a-git-hub-java-code-example-which-uses-the-java-sdk-to-access-cumulocity-apis/382/2 "2022-06-16T09:08:29Z")

</div>

Hi,

maybe those examples can help you: [GitHub - Cumulocity-IoT/cumulocity-microservice-templates: Collection of templates / examples to give the developer a starting point how common features can be solved by using Cumulocity Microservice SDK for Java. Developed by Global Competency Center IoT](https://github.com/Cumulocity-IoT/cumulocity-microservice-templates)

Regards  
Michael

---

<div class="post-metadata">

**Author:** ![Alexander\_Pester](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/alexander_pester/32/5725_2.png) [@Alexander\_Pester](https://community.cumulocity.com/u/Alexander_Pester)\
**Post date:** [June 16, 2022, 9:22am UTC](https://community.cumulocity.com/t/need-a-git-hub-java-code-example-which-uses-the-java-sdk-to-access-cumulocity-apis/382/3 "2022-06-16T09:22:23Z")

</div>

Hi,

there are also a lot of code snippet at Cumulocity documentation: [Microservice SDK for Java - Cumulocity IoT Guides](https://cumulocity.com/guides/microservice-sdk/java/#client-library)

Best regards,  
Alex

---

<div class="post-metadata">

**Author:** ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)\
**Post date:** [June 16, 2022, 9:34am UTC](https://community.cumulocity.com/t/need-a-git-hub-java-code-example-which-uses-the-java-sdk-to-access-cumulocity-apis/382/4 "2022-06-16T09:34:07Z")

</div>

Thank you so much Michael. This is really helping me. Best regards.

---

<div class="post-metadata">

**Author:** ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)\
**Post date:** [June 16, 2022, 9:34am UTC](https://community.cumulocity.com/t/need-a-git-hub-java-code-example-which-uses-the-java-sdk-to-access-cumulocity-apis/382/5 "2022-06-16T09:34:46Z")

</div>

Thanks a lot Alexander, I am able to see the examples of my interest. Best Regards.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [September 14, 2022, 9:35am UTC](https://community.cumulocity.com/t/need-a-git-hub-java-code-example-which-uses-the-java-sdk-to-access-cumulocity-apis/382/6 "2022-09-14T09:35:05Z")

</div>

Closed on September 14, 2022, 9:35am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
