From c1cfda027f9509a5420b5e393a7650ced831128a Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 21 Mar 2023 15:26:34 +0100 Subject: Docs API: Fix go boolean, add errors section and renew transition --- docs/src/api/overview/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/src/api/overview') diff --git a/docs/src/api/overview/README.md b/docs/src/api/overview/README.md index 4b5f3d5..475f9fb 100644 --- a/docs/src/api/overview/README.md +++ b/docs/src/api/overview/README.md @@ -5,6 +5,7 @@ This chapter defines the API that is used to build an eduVPN/Let's Connect! clie ## Table of contents 1. [Types](#types) - [JSON](#json) + - [Errors](#errors) - [States](#states) 2. [Functions](#functions) - [Registering](#registering) @@ -133,7 +134,7 @@ func stateCallback(oldState int, newState int, data interface{}) { } c := client.Client{} -c.Register("org.eduvpn.app.linux", "1.0.0", "/home/eduvpn/.config/eduvpn", stateCallback, True) +c.Register("org.eduvpn.app.linux", "1.0.0", "/home/eduvpn/.config/eduvpn", stateCallback, true) ``` @@ -285,6 +286,9 @@ Renew session is used for renewing the VPN. This does not give you a configurati Arguments: - None +State transitions that must be handled: +- `OAuth_Started`: If the server needs authorization. Open the URL in the browser + Return type: - An error -- cgit v1.2.3