@@ -29,7 +29,7 @@ func (pc *PinsController) Fetch(pinId string) (*models.Pin, error) {
29
29
response .Data = new (models.Pin )
30
30
31
31
resp , err := pc .wreckerClient .Get ("/pins/" + pinId + "/" ).
32
- URLParam ("fields" , "id,link,note,url,attribution,board,color,counts,created_at,creator,image,media,metadata,original_link" ).
32
+ URLParam ("fields" , models . PIN_FIELDS ).
33
33
Into (response ).
34
34
Execute ()
35
35
@@ -65,7 +65,7 @@ func (pc *PinsController) Create(boardSpec string, note string, optionals *PinCr
65
65
response := new (models.Response )
66
66
response .Data = new (models.Pin )
67
67
request := pc .wreckerClient .Post ("/pins/" ).
68
- URLParam ("fields" , "id,link,note,url,attribution,board,color,counts,created_at,creator,image,media,metadata,original_link" ).
68
+ URLParam ("fields" , models . PIN_FIELDS ).
69
69
FormParam ("board" , boardSpec ).
70
70
FormParam ("note" , note ).
71
71
Into (response )
@@ -124,7 +124,7 @@ func (pc *PinsController) Update(pinId string, optionals *PinUpdateOptionals) (*
124
124
response := new (models.Response )
125
125
response .Data = new (models.Pin )
126
126
request := pc .wreckerClient .Patch ("/pins/" + pinId + "/" ).
127
- URLParam ("fields" , "id,link,note,url,attribution,board,color,counts,created_at,creator,image,media,metadata,original_link" ).
127
+ URLParam ("fields" , models . PIN_FIELDS ).
128
128
Into (response )
129
129
if optionals .Board != "" {
130
130
request .FormParam ("board" , optionals .Board )
0 commit comments