Git VMware {code} Samples and Flings | VMware (2024)

Welcome back to the Git Commit(ted) to </Dev> Resources series! Today, we will explore the VMware {code} Sample Exchange, EUC-samples GitHub repository, as well as VMware Flings. This blog is all about finding code samples to leverage in your day-to-day job to ease and automate tasks within EUC. We will feature a select few samples and Flings at the end of the month, but for today, let’s jump right in and learn how to access these samples! Start to explore these samples to see how others have leveraged the EUC APIs. Feel free to also steal (although it’s not really stealing when it’s open-source) code samples to use as templates. This is the best and fastest way to get started and learn how to leverage these APIs.

What is VMware {code}?

VMware {code} is a free developer program that provides access to a growing community of developers and experts. If you are an existing Developer Center user or partner program member, you can join the new VMware {code} program using your MyVMware account. If you do not have one, register here to access SDKs and participate in developer forums.

Git VMware {code} Samples and Flings | VMware (1)

VMware {code} Sample Exchange

VMware {code} is your one-stop-shop for access to VMware’s APIs, samples, sessions, events, and more. Today we will be focusing on the Sample Exchange to find EUC coding samples that you can start to use today. The Sample Exchange allows you to browse and download code samples from Vmware, as well as code samples contributed by the VMware community. Log in to Sample Exchange using your MyVMware credentials to submit requests for new samples, contribute your own samples, as well as propose a sample as a solution for open requests. This is one way you can contribute to the community. However, we will discuss how you can also leverage the GitHub reposistory to sync samples from GitHub to the Sample Exchange.

Disclaimer:All sample content and code in Sample Exchange is licensed to you by the sample's author. VMware does not guarantee the samples; they are provided "AS IS". Use of this site is subject to theVMware Community Terms of Use.

Git VMware {code} Samples and Flings | VMware (2)

Ways to Add Samples

There are several different ways to contribute a sample to the Sample Exchange. You can upload your sample as a ZIP archive or simply cut and paste a code snippet into the submission form. If you are a GitHub user, you can also connect your account with VMware {code} to import gists and repositories (or individual files and folders within a repo) directly from GitHub. When linking to GitHub, the samples in the Sample Exchange are automatically refreshed with any changes made in GitHub. This allows you and others to leverage GitHub for source control, while allowing the sample to be searchable and easily found in the Sample Exchange.

SeeSample Exchange Guidefor more information and a step-by-step guide of adding samples.

Git VMware {code} Samples and Flings | VMware (3)

EUC Samples on GitHub

The euc-samples GitHub repository is where you can take what you learned to contribute back to the community. VMware engineers post new code samples for new features to help customers get started, but this is where we need people like you to use those samples and improve upon them. All samples in the euc-samples repo are open-source and are not supported by Vmware, but this is a great place to start to get ideas or code templates for use in your use-case.

The general layout of the repository is product / resource type / samples. This directory structure should allow you quickly find samples you care about. Be sure to review the README.md for more information about this repository.

Git VMware {code} Samples and Flings | VMware (4)

Contributing to EUC-samples

We welcome contributions from the community. Before you start working with EUC-samples, please read ourDeveloper Certificate of Origin. All contributions to this repository must be signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on as an open-source patch. This step is often missed by contributors.

For details on how to contribute, we have created two guides: Contributing to EUC Samples from GitHub Desktop for macOS and Contributing to EUC Samples via Git CLI.

VMware Flings

Flings are executable, experimental tools, or scripts that are developed by VMware's internal community and released on our externalsitefor VMware's ecosystem to use. Flings are free to download and are "unsupported" by VMware's official products. Some Flings do end up implemented in VMware products. Later this month, we will have some Flings featured, but be sure to check out the various Flings. I developed my first Fling last year, but now use a handful of Flings daily. Unlike the VMware {code} Sample Exchange and the EUC-Sample Repo, Flings tend to be more thorough, larger effort tools/applications that our engineers develop to address customer needs. Please understand that Fling developers do this on their spare time so please be kind with feedback and when reporting bugs.

Git VMware {code} Samples and Flings | VMware (5)

Recap

Today we reviewed the various places to find code samples and contribute back to the community. We also checked out VMware Flings and learned that these are not officially supported but are pretty amazing tools that VMware engineers develop on their free time. I hope you find samples and Flings that you can start using today, and in the future please consider contributing to samples and repositories.

Be sure to subscribe to the Digital Workspace Tech Zone Blog RSS or check back daily to see what we release. By the end of this month, we hope that you are comfortable leveraging code samples, VMware Flings, scripting/coding, and leveraging the EUC APIs to automate your workspace!

You can also follow us on Twitter @EUCTechZone to stay updated on the latest EUC content!

Agenda

Make sure to check out the other blog posts in our 28-day series:

  • Day 1: Let's Git Commit(ted) to Dev Resources
  • Day 2: Getting Started with the Workspace ONE UEM REST APIs
  • Day 3: Getting Started with the Workspace ONE Access APIs
  • Day 4: Getting Started with the VMware Workspace ONE Intelligence APIs
  • Day 5: Getting Started with the VMware Horizon REST APIs and VMware PowerCLI
  • Day 6: Getting Started with Automating the Unified Access Gateway Deployment
  • Day 7: Podcast: Day 0 Onboarding Automation with Scot Curry
  • Day 8: Video: Anatomy of the Workspace ONE UEM API
  • Day 9: Introduction to using Postman - Part 1
  • Day 10: Introduction to using Postman - Part 2
  • Day 11: Pro Tips and Tricks - How to be an API Boss
  • Day 12: What is OAuth - Learning the Basics
  • Day 13: Getting Started with Intelligent Hub Notifications
  • Day 14: Git Basics: Getting Git Going
  • Day 15: Podcast: Git Commit(ted) to Resources: Customer Spotlight with The Home Depot
  • Day 16: Git VMware {code} Samples and Flings
  • Day 17: Using paginated requests with Workspace ONE UEM REST APIs
  • Day 18: Event Notifications
  • Day 19: Overview of Script Samples using PowerCLI for Horizon
  • Day 20: Uploading Windows apps using REST APIs
  • Day 21: Uploading macOS apps using REST APIs and Admin Assistant
  • Day 22: API-based user lifecycle and SCIM
  • Day 23: Video: Community Expert Roundtable on Leveraging APIs and Scripting
  • Day 24: Video: Exploring the Workspace ONE GitHub Samples Repository
  • Day 25: Featured Fling: Forklift for Workspace ONE UEM
  • Day 26: Featured VMware {code} Samples for Horizon
  • Day 27: Featured Flings for VMware Horizon
  • Day 28: Continuing to Focus on </Dev> Resources Page
Git VMware {code} Samples and Flings | VMware (2024)
Top Articles
Latest Posts
Article information

Author: Corie Satterfield

Last Updated:

Views: 6459

Rating: 4.1 / 5 (62 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Corie Satterfield

Birthday: 1992-08-19

Address: 850 Benjamin Bridge, Dickinsonchester, CO 68572-0542

Phone: +26813599986666

Job: Sales Manager

Hobby: Table tennis, Soapmaking, Flower arranging, amateur radio, Rock climbing, scrapbook, Horseback riding

Introduction: My name is Corie Satterfield, I am a fancy, perfect, spotless, quaint, fantastic, funny, lucky person who loves writing and wants to share my knowledge and understanding with you.