///LookupBook returns Book data from PA-API
LookupBook returns Book data from PA-API
/// LookupBook returns Book data from PA - API
func (a *PAAPI5) LookupBook(ctx context.Context, id string) (*entity.Book, error) {
	r, err := a.LookupRawData(ctx, id)
	if err != nil {
		return nil, errs.Wrap(err, errs.WithContext("id", id))
	}
	rsp := Response{}
	if err := json.NewDecoder(r).Decode(&rsp); err != nil {
		return nil, errs.Wrap(err, errs.WithContext("id", id))
	}
	book, err := rsp.Output(a.Name())
	return book, errs.Wrap(err, errs.WithContext("id", id))
}
func ( a * PAAPI5 ) LookupBook ( ctx context . Context , id string ) ( * entity . Book , error ) { r , err := a . LookupRawData ( ctx , id ) if err != nil { return nil , errs . Wrap ( err , errs . WithContext ( " " , id ) ) } rsp := Response { } if err := json . NewDecoder ( r ) . Decode ( & rsp ) ; err != nil { return nil , errs . Wrap ( err , errs . WithContext ( " " , id ) ) } book , err := rsp . Output ( a . Name ( ) ) return book , errs . Wrap ( err , errs . WithContext ( " " , id ) ) }
LookupBook returns Book data from PA-API
LookupBook returns Book data from PA - API