Giter VIP home page Giter VIP logo

app-windows-sample's Introduction

Onshape Windows Sample

Onshape Windows Sample is a collection of sample projects which demonstrate Onshape OAuth authentication and Onshape REST API workflow on Windows platform.

Prerequisites

Sample Onshape App registration parameters:

AppRegistration

Base URL, Client Id, and Client Secret used by the sample are extracted from the environment variables.

Environment variables can be set in developer command prompt before launching Visual Studio:

>SET ONSHAPE_BASE_URI=https://partner.dev.onshape.com 
>SET ONSHAPE_CLIENT_SECRET=TLLFGK56YJSL2... 
>SET ONSHAPE_CLIENT_ID=K5SUPTJ3NX3LUA2...  

or set globally in the configuration panel:

AppRegistration

How to run

Open OnshapeWindowsSample.sln solution in Windows UI, or in developper command prompt:

>cd c:\dev\OnshapeWindowsSample
>devenv OnshapeWindowsSample.sln

Select "Debug > Start Debugging" in Visual Studio menue to start the sample.

Onshape authentication page in a browser should appear:

Start

List of the user's document should be printed in JSON format, and interactive prompt should appear:

Console

Projects

  • OnshapeClient - a .NET library, skeleton project which encapsulates Onshape REST API interface;

  • OnshapeConsoleApp - .NET executable, a skeleton console application whch wraps some of the REST API entry points into commands exposed through the command line interface.

References

app-windows-sample's People

Contributors

awk avatar mnoyes avatar stevelb avatar vvoloboi avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.