LogoRecal

Get OAuth Links

Get the auth urls for the oauth providers

GET
/v1/users/{userId}/oauth/links

Authorization

AuthorizationRequiredBearer <token>

The Recal API token

In: header

Path Parameters

userIdRequiredstring

Query Parameters

providerstring | array<unknown>
scopestring
accessTypestring

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredarray<object>

TypeScript Definitions

Use the response body type in TypeScript.

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

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

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

  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/links?provider=google&scope=edit&accessType=offline"

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

print(response.text)
[
  {
    "provider": "google",
    "url": "https://example.com"
  }
]
"User not found"