Crate linkedin_api

Crate linkedin_api 

Source
Expand description

Rust Wrapper for the LinkedIn API

This crate provides an asynchronous interface to the LinkedIn Voyager API.

§Example

use linkedin_api_rs::Linkedin;
use std::env;

#[tokio::main]
async fn main() -> Result<(), linkedin_api_rs::LinkedinError> {
    let username = env::var("LINKEDIN_USERNAME").unwrap();
    let password = env::var("LINKEDIN_PASSWORD").unwrap();

    let api = Linkedin::new(&username, &password, false).await?;

    let profile = api.get_profile("billy-g").await?;

    Ok(())
}

Re-exports§

pub use crate::error::LinkedinError;

Modules§

client
error
linkedin
types
utils

Structs§

Linkedin
Main struct for interacting with the LinkedIn API asynchronously.