Skip to content

Commit

Permalink
function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasticrabbit committed Oct 27, 2021
1 parent 377537f commit f174186
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (
"golang.org/x/oauth2"
)

// accepts a client ID, client secret, and localhost port, and implements
// webserver to allow end-user to authenticate, returning authorization token
func GetToken(clientID, clientSecret, localHostPort string) (string, error) {
ctx := context.Background()
redirectURL := "http://localhost:" + localHostPort
Expand Down
1 change: 1 addition & 0 deletions internal/gettask.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"
)

//requests the JSON data for all fields in a Clickup task or subtask
func GetTask(clickUpTaskID, tokenValue, clientID string) []byte {
apiPath := fmt.Sprintf("https://api.clickup.com/api/v2/task/%s/", clickUpTaskID)

Expand Down

0 comments on commit f174186

Please sign in to comment.