{ "result": true, "statusCode": 200, "message": "请求成功", "info": { "emailIdList": ["1638511922407_160111_14994_4176.sc-10_9_6_181-inbound0$fangzesheng@free-api.com"] } }
<?php /** * Created by PhpStorm. * User: FZS * Time: 2021/12/03 09:08 */ $url = 'https://api.sendcloud.net/apiv2/mail/send'; $API_USER = ''; $API_KEY = ''; $param = array( 'apiUser' => $API_USER, 'apiKey' => $API_KEY, 'from' => 'service@sendcloud.im', 'fromName' => '测试邮件', 'to' => 'fangzesheng@free-api.com', 'subject' => '来自免费api的第一封邮件!', 'html' => '你太棒了!你已成功的从免费api发送了一封测试邮件!', 'respEmailId' => 'true'); $data = http_build_query($param); $options = array( 'http' => array( 'method' => 'POST', 'header' => 'Content-Type: application/x-www-form-urlencoded', 'content' => $data )); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); }
package main import ( "fmt" "io/ioutil" "log" "net/http" ) const ( APIURL = "https://api.oick.cn/douyin/api.php?url=https://v.douyin.com/eo1gaGQ/" ) func main() { queryUrl := fmt.Sprintf("%s",APIURL) resp, err := http.Get(queryUrl) if err != nil { log.Println(err) return } defer resp.Body.Close() body, err := ioutil.ReadAll(resp.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) }