Skip to content

Commit

Permalink
GraphClient: correct documentation for make*APICall
Browse files Browse the repository at this point in the history
  • Loading branch information
TerraTalpi committed Aug 19, 2021
1 parent 9a79e8b commit e99e511
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GraphClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,17 @@ func (g *GraphClient) refreshToken() error {
return err
}

// makeGETAPICall performs an API-Call to the msgraph API. This func uses sync.Mutex to synchronize all API-calls
// makeGETAPICall performs an API-Call to the msgraph API.
func (g *GraphClient) makeGETAPICall(apiCall string, reqParams getRequestParams, v interface{}) error {
return g.makeAPICall(apiCall, http.MethodGet, reqParams, nil, v)
}

// makeGETAPICall performs an API-Call to the msgraph API. This func uses sync.Mutex to synchronize all API-calls
// makeGETAPICall performs an API-Call to the msgraph API.
func (g *GraphClient) makePOSTAPICall(apiCall string, reqParams getRequestParams, body io.Reader, v interface{}) error {
return g.makeAPICall(apiCall, http.MethodPost, reqParams, body, v)
}

// makePATCHAPICall performs an API-Call to the msgraph API. This func uses sync.Mutex to synchronize all API-calls
// makePATCHAPICall performs an API-Call to the msgraph API.
func (g *GraphClient) makePATCHAPICall(apiCall string, reqParams getRequestParams, body io.Reader, v interface{}) error {
return g.makeAPICall(apiCall, http.MethodPatch, reqParams, body, v)
}
Expand Down

0 comments on commit e99e511

Please sign in to comment.