linkedin

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DataEndpoint linkedin profile data endpoint url
	DataEndpoint = "https://api.linkedin.com/v1/people/~:(id,first-name,last-name,email-address,picture-url,location,positions,headline)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Company

type Company struct {
	ID       int
	Name     string
	Industry string
	Size     string
	Type     string
}

Company linkedin company data

type User

type User struct {
	ID         string
	FirstName  string `json:"firstName"`
	LastName   string `json:"lastName"`
	Email      string `json:"emailAddress"`
	PictureURL string `json:"pictureUrl"`
	Headline   string
	Positions  UserPositions
	Location   struct {
		Country struct {
			Code string
		}
		Name string
	}
	ErrorCode int `json:"errorCode"`
	Message   string
	Status    int
}

User linkedin user data

func UserInfo

func UserInfo(tokenType string, accessToken string) (*User, error)

UserInfo linkedin user info by the access token

type UserPosition

type UserPosition struct {
	ID        int
	Title     string
	IsCurrent bool `json:"isCurrent"`
	Company   Company
	Location  struct {
		Country struct {
			Code string
			Name string
		}
	}
	StartDate struct {
		Month int
		Year  int
	} `json:"startDate"`
}

UserPosition linkedin user position data

type UserPositions

type UserPositions struct {
	Values []UserPosition
}

UserPositions linkedin user postions data

Jump to

Keyboard shortcuts

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