SDKs

SDK overview

The official SDKs handle Connect with rNet (OAuth 2.0 with PKCE), token refresh, user profiles and AI requests. All three are open source under the MIT license.

What each SDK provides

FeatureNode.jsPythonJava
PKCE helpergeneratePKCE()generate_pkce()generatePKCE()
Authorization URLgetAuthorizationUrl()get_authorization_url()getAuthorizationUrl()
Code exchangeexchangeCodeForToken()exchange_code_for_token()exchangeCodeForToken()
RefreshrefreshAccessToken()refresh_access_token()refreshAccessToken()
User profilegetUserInfo()get_user_info()getUserInfo()
AI requestchat()chat()chat()
StreamingchatStream()chat_stream()chatStream()

Source code

Another language?
Use the endpoints directly. See the Authentication API and AI requests.