Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/SheltonZhu/elevengo

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/SheltonZhu/elevengo

  • v0.2.4
  • Source
  • Go
  • Socket score

Version published
Created
Source

ElevenGo

Version Reference License

An API client of 115 Cloud Storage Service.

Example

package main

import (
    "github.com/deadblue/elevengo"
    "log"
)

func main()  {
  agent := elevengo.Default()
  credential := &elevengo.Credential{
    UID: "", CID: "", SEID: "",
  }
  if err := agent.CredentialImport(credential); err != nil {
    log.Fatalf("Import credentail error: %s", err)
  }

  it, err := agent.FileIterate("dirId")
  for ; err == nil; err = it.Next() {
    file := &elevengo.File{}
    if err = it.Get(file); err == nil {
      log.Printf("File: %d => %#v", it.Index(), file)
    }
  }
  if !elevengo.IsIteratorEnd(err) {
    log.Fatalf("Iterate files error: %s", err)
  }
}

More examples can be found in reference.

Features

  • Login
    • Import credential from cookies
    • Login via QRCode
    • Get signed-in user information
  • File
    • List
    • Search
    • Rename
    • Move
    • Copy
    • Delete
    • Get Information by ID
    • Stat File
    • Download
    • Upload
    • Make Directory
  • Media
    • Get Video data
    • Get Image URL
  • Offline
    • List tasks
    • Create task by URL
    • Delete tasks
    • Clear tasks
  • Other
    • Captcha

License

MIT

FAQs

Package last updated on 25 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc