// GetPinRequest creates a PinRequest using the Plex API and returns it.
GetPinRequest creates a PinRequest using the Plex API and returns it.
// GetPinRequest creates a PinRequest using the Plex API and returns it .
func GetPinRequest() (*PinRequest, error) {
	httpClient := &http.Client{Timeout: time.Second * 10}
	_, body, err := sendRequest("POST", "https://plex.tv/pins", headers, httpClient)
	if err != nil {
		return nil, err
	}
	pinRequest := &PinRequest{}
	err = json.Unmarshal(body, pinRequest)
	if err != nil {
		return nil, err
	}
	return pinRequest, nil
}
func GetPinRequest ( ) ( * PinRequest , error ) { httpClient := & http . Client { Timeout : time . Second * 10 } _ , body , err := sendRequest ( " " , " " , headers , httpClient ) if err != nil { return nil , err } pinRequest := & PinRequest { } err = json . Unmarshal ( body , pinRequest ) if err != nil { return nil , err } return pinRequest , nil }
GetPinRequest creates a PinRequest using the Plex API and returns it.
GetPinRequest creates a PinRequest using the Plex API and returns it .