session

package
v3.3.311 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 2 Imported by: 11 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package session is the Files.com API client package for the files_sdk.Session model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Create calls Client.Create using the default configuration.

func Delete

func Delete(opts ...files_sdk.RequestResponseOption) (err error)

Delete calls Client.Delete using the default configuration.

Types

type Client

type Client struct {
	files_sdk.Config
}

Client calls the Session API using its embedded Config.

func (*Client) Create

func (c *Client) Create(params files_sdk.SessionCreateParams, opts ...files_sdk.RequestResponseOption) (session files_sdk.Session, err error)

Create calls POST /sessions.

API operation: Create user session (log in).

func (*Client) Delete

func (c *Client) Delete(opts ...files_sdk.RequestResponseOption) (err error)

Delete calls DELETE /sessions.

API operation: Delete user session (log out).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL