Code Monkey home page Code Monkey logo

itwin-library-api-sample-app's Introduction

Library API Sample App

Copyright © Bentley Systems, Incorporated. All rights reserved.

An iTwin sample application that demonstrates following workflows using the Library API.

  • Upload a component to a catalog
  • Query and download components from a catalog
  • Create a component and its referenced entites i.e. catalog, manufacturer, application and category. Create and get component related entities i.e. document, variation and webLink.

This application contains sample code that should not be used in a production environment. It contains no retry logic and minimal logging/error handling.

Prerequisites

Development Setup (Visual Studio 2019)

  1. Clone Repository

  2. Open iTwinLibrarySampleApp.sln and Build

  3. (Optional) Put breakpoint in Program.cs

  4. Run to debug

  5. It will require a user token.

    • Go to the Library API developer portal
    • Click the TryIt Button
    • In the popup window, select authorizationCode in the Bentley OAuth2 Service dropdown
    • This will popup another window that will require you to login.
    • After you login, the Authorization header will be populated. Copy the entire string and paste into the command window for the iTwin Sample Library App.
    • Press Enter
  6. You can now step through the code that will create and manage component and related entites.

itwin-library-api-sample-app's People

Contributors

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