Giter Site home page Giter Site logo

imagehosting's Introduction

Introduction

ImageHosting是一个集合多家免费图床的JAVA实现

Guides

1、添加依赖(需自行打包)

<dependency>
    <groupId>com.bushangbuxia</groupId>
	<artifactId>imagehosting</artifactId>
    <version>${version}</version>
</dependency>

2、使用案例

public static void main(String[] args) {
		try {
			ImageHostingService imageHostingService = new DefaultImageHostingService();
			File imageFile = new File("C:\\5E44465978FB976E3597D3110CB76AB9.png");
			ImageHostingOptions options = new ImageHostingOptions();
			options.setHostingPlatforms(Arrays.asList(ImageHostingPlatform.JD));
			ImageHostingResponse response = imageHostingService.upload(imageFile, options);
			System.out.println(JSON.toJSONString(response));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

Support Site

当前支持的站点

  • 苏宁
  • 京东
  • 阿里
  • 今日头条
  • 网易
  • 搜狐
  • CC
  • 掘金

相关站点正在陆续加入中,欢迎贡献pull request......

License

ImageHosting is released under the MIT license.

imagehosting's People

Contributors

jingxiang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.