Giter Site home page Giter Site logo

hms-core / hms-drive-serverdemo Goto Github PK

View Code? Open in Web Editor NEW
13.0 14.0 6.0 114 KB

HUAWEI Drive Server Demo provides an example of calling the open interface of the drive server.

Home Page: https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/drivekit-introduction?ha_source=hms1

License: Apache License 2.0

Java 100.00%
hmscore hms-drive huawei-drive-kit huawei-drive drive demo

hms-drive-serverdemo's Introduction

HMS Drivekit Serverdemo

English | δΈ­ζ–‡

Table of Contents

Introduction

In this demo, requests/responses are sent/received by using the HTTP client. All open APIs provided by HUAWEI Drive Kit ("Dive Kit") can be accessed by this demo. Note: Access_token (AT) needs to be obtained by using HUAWEI Account Kit.

Installation

Before using HUAWEI Drive Kit Server sample code, check whether the JAVA and Maven environment has been installed. Decompress the HUAWEI Drive Kit Server sample code package. The steps to run the Drive service sample code are as follows:

  1. Import project to your JAVA Integrated Development Environment.
  2. Use Maven to compile this project.
  3. Obtain parameters in the Main function of each Java file in advance. For example, obtain the AT through the HMS SDK. See details : HUAWEI Drive Service Development Preparation

Supported Environments

Java 1.8 or a later version is recommended.
Maven 3.6.1 is recommended.

Configuration

No additional configuration is required.

Getting Started

Currently, the core capabilities of Drive Kit include uploading, downloading, deleting, recycling, and searching for files in Drive as well as querying and monitoring file changes.

  1. Obtain parameters in the Main function of each Java file in advance. For example, obtain the AT through the HMS SDK.
  2. Call the required APIs. Some APIs depend on each other, for example: Before calling changesSubscribe and ChangesList, you need to call ChangesGetStartCursor to get the query parameter startCursor. Before calling ChannelsStop, you need to create a valid channel for Watch. Before calling FilesResume, call FilesCreateResume or FilesUpdateResume to obtain uploadId and serverId. Before calling FilesCopy, FilesDelete, FilesGet, FilesUpdate, FilesUpdate*, FilesSubscribe, or FilesGet*, you need to call FilesCreate* to create a file and get fileId.

Question or issues

If you want to evaluate more about HMS Core, r/HMSCore on Reddit is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.

If you have questions about how to use HMS samples, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
  • Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.

If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.

License

Drivekit server Java sample is licensed under the Apache License, version 2.0.

hms-drive-serverdemo's People

Contributors

huawei-mobile-services-core avatar mike-mei avatar sobighandsome avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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