An open API service indexing awesome lists of open source software.

https://github.com/easychen/serverchan-demo

Server酱多语言调用实例
https://github.com/easychen/serverchan-demo

Last synced: about 1 year ago
JSON representation

Server酱多语言调用实例

Awesome Lists containing this project

README

          

# Server酱多语言调用实例

> 2024-10-01 更新,全部实例均已兼容[Server酱³](https://sc3.ft07.com),[多语言SDK](https://github.com/easychen/serverchan-sdk)也已经上线

借助于 GPT 我们编写了多种语言的Server酱调用实例。包括

- C
- C#
- Dart
- Go
- Java
- NodeJS
- PHP
- Python
- Rust
- Shell
- Swift

## 测试方式

将`.env.example`改名为`.env`,填入sendkey,即可测试。

> 注意:Dart中读取.env文件失败,可以手工在main.dart中手工写入sendkey测试。

### 运行命令

- php send.php
- node send.js
- python send.py
- java Main.java
- go run main.go
- cargo run
- bash send.sh
- swift main.swift
- dart run main.dart
- gcc main.c -o main -lcurl && ./main