wunderlist

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0 modules, 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	// Code is the code used to get a user api token
	Code string `query:"code" json:"code"`
}

Migration represents the implementation of the migration for wunderlist

func (*Migration) AuthURL

func (w *Migration) AuthURL() string

AuthURL returns the url users need to authenticate against @Summary Get the auth url from wunderlist @Description Returns the auth url where the user needs to get its auth code. This code can then be used to migrate everything from wunderlist to Vikunja. @tags migration @Produce json @Security JWTKeyAuth @Success 200 {object} handler.AuthURL "The auth url." @Failure 500 {object} models.Message "Internal server error" @Router /migration/wunderlist/auth [get]

func (*Migration) Migrate

func (w *Migration) Migrate(user *user.User) (err error)

Migrate migrates a user's wunderlist lists, tasks, etc. @Summary Migrate all lists, tasks etc. from wunderlist @Description Migrates all folders, lists, tasks, notes, reminders, subtasks and files from wunderlist to vikunja. @tags migration @Accept json @Produce json @Security JWTKeyAuth @Param migrationCode body wunderlist.Migration true "The auth code previously obtained from the auth url. See the docs for /migration/wunderlist/auth." @Success 200 {object} models.Message "A message telling you everything was migrated successfully." @Failure 500 {object} models.Message "Internal server error" @Router /migration/wunderlist/migrate [post]

func (*Migration) Name

func (w *Migration) Name() string

Name is used to get the name of the wunderlist migration @Summary Get migration status @Description Returns if the current user already did the migation or not. This is useful to show a confirmation message in the frontend if the user is trying to do the same migration again. @tags migration @Produce json @Security JWTKeyAuth @Success 200 {object} migration.Status "The migration status" @Failure 500 {object} models.Message "Internal server error" @Router /migration/wunderlist/status [get]

Jump to

Keyboard shortcuts

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