LogoRecal

Get OAuth Link

GET
/v1/users/{userId}/oauth/{provider}/link

Authorization

AuthorizationRequiredBearer <token>

The Recal API token

In: header

Path Parameters

userIdRequiredstring
providerRequiredstring

Calendar provider (google or microsoft)

Pattern: "^(google|microsoft)$"

Query Parameters

scopestring
accessTypestring
redirectUrlstring
Format: "url"

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

urlRequiredstring
Format: "url"

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring
curl -X GET "https://api.recal.dev/v1/users/string/oauth/string/link?scope=edit&accessType=offline&redirectUrl=string" \
  -H "Authorization: Bearer <token>"
fetch("https://api.recal.dev/v1/users/string/oauth/string/link?scope=edit&accessType=offline&redirectUrl=string", {
  headers: {
    "Authorization": "Bearer <token>"
  }
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.recal.dev/v1/users/string/oauth/string/link?scope=edit&accessType=offline&redirectUrl=string"

  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "Bearer <token>")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.recal.dev/v1/users/string/oauth/string/link?scope=edit&accessType=offline&redirectUrl=string"

response = requests.request("GET", url, headers = {
  "Authorization": "Bearer <token>"
})

print(response.text)
{
  "url": "https://example.com"
}
"User not found"