Code Monkey home page Code Monkey logo

nclbk's Introduction

A Nextcloud Bookmark API Client.

Currently a first draft implementation, not stable or ready for consumption. Feedback and contributions welcome.

Run Tests

rust stable >=1.46

cargo test

Development build/run

rust stable >=1.46

cargo-watch -x run

Currently nothing to build, yet.

Building for Production

rust stable >=1.46

cargo build --release

Currently nothing to build, yet.

Example

use libnclbk;
use url::Url;        

fn main() {
    let auth_id: String = "<your user>".to_owned();
    let base_url: Url = "https://<your nextcloud>".to_owned().parse().unwrap();
    // Create an `app password` at https://<your nextcloud>/index.php/settings/user/security and export it as an env var
    let key: &str = "NC_AUTH_SECRET";
    let auth_secret: String = std::env::var(key).to_owned().unwrap();

    let bookmark_client = libnclbk::BookmarkAPIClient::new(auth_id, auth_secret, base_url).unwrap();
    println!("{:?}", bookmark_client);
} 

Useful Documentation

nclbk's People

Contributors

cromulentbanana avatar woodworker avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

woodworker

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.