linkedin

package module
v0.0.0-...-70e2ac1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 10 Imported by: 0

README

linkedin

Build Status | codecov | Go Report Card | GoDoc

A simple linkedin v2 client.

Support for

Account

  • Get account information
If i miss something or you have something interesting, please be part of this project. Let me know! My contact is at the end.

Dependecy Management

Dep

Project dependencies are managed using Dep. Read more about Dep.

  • Install dependencies: dep ensure
  • Update dependencies: dep ensure -update
Go
go get github.com/joaosoft/linkedin

Usage

This examples are available in the project at linkedin/examples

import "github.com/joaosoft/linkedin"

linkedin := linkedin.Newlinkedin()

Known issues

Follow me at

Facebook: https://www.facebook.com/joaosoft

LinkedIn: https://www.linkedin.com/in/jo%C3%A3o-ribeiro-b2775438/

If you have something to add, please let me know joaosoft@gmail.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(file string) bool

func GetEnv

func GetEnv() string

func ReadFile

func ReadFile(fileName string, obj interface{}) ([]byte, error)

func ReadFileLines

func ReadFileLines(fileName string) ([]string, error)

func WriteFile

func WriteFile(fileName string, obj interface{}) error

Types

type AppConfig

type AppConfig struct {
	Linkedin *LinkedinConfig `json:"linkedin"`
}

AppConfig ...

func NewConfig

func NewConfig() (*AppConfig, manager.IConfig, error)

NewConfig ...

type File

type File struct {
	// contains filtered or unexported fields
}

func (*File) Delete

func (f *File) Delete(path string) (*deleteFileResponse, error)

func (*File) Download

func (f *File) Download(path string) ([]byte, error)

func (*File) Upload

func (f *File) Upload(path string, file []byte) (*uploadFileResponse, error)

type Linkedin

type Linkedin struct {
	// contains filtered or unexported fields
}

func NewLinkedin

func NewLinkedin(options ...LinkedinOption) (*Linkedin, error)

NewLinkedin ...

func (*Linkedin) Reconfigure

func (linkedin *Linkedin) Reconfigure(options ...LinkedinOption)

Reconfigure ...

type LinkedinConfig

type LinkedinConfig struct {
	Log struct {
		Level string `json:"level"`
	} `json:"log"`
	Authorization struct {
		Id     string `json:"id"`
		Secret string `json:"secret"`
	} `json:"authorization"`
	Hosts struct {
		Api string `json:"api"`
	} `json:"hosts"`
}

LinkedinConfig ...

type LinkedinOption

type LinkedinOption func(linkedin *Linkedin)

LinkedinOption ...

func WithConfiguration

func WithConfiguration(config *LinkedinConfig) LinkedinOption

WithConfiguration ...

func WithLogLevel

func WithLogLevel(level logger.Level) LinkedinOption

WithLogLevel ...

func WithLogger

func WithLogger(logger logger.ILogger) LinkedinOption

WithLogger ...

func WithManager

func WithManager(mgr *manager.Manager) LinkedinOption

WithManager ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL