91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.66MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-10
  • 語言: Java
  • 標簽: 微信接口??

資源簡介

請先安裝JDK環境,基于Java開發,解壓后直接導入到eclipse

資源截圖

代碼片段和文件信息

package?test;

import?util.WeChatRequest;

public?class?Test1?{

/**
?*?@param?args
?*/
public?static?void?main(String[]?args)?{
//add();
//delAll();
// del2();
}


/**
?*?刪除
?*/
public?static?void?del2(){
//獲取ToKen?由于返回的是JSONobject所以可使用get(key)返回一個object值??最后使用toString()轉換字符串
String?toKen?=?WeChatRequest.httpGet(
“https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential“?+
“&appid=wxb00fed1cef9ec76b&secret=b1f91e606cf801b2e5ac0f3399d63296“
).get(“access_token“).toString();



//最后以Post方式提交至https://api.weixin.qq.com/cgi-bin/menu/create?access_token=
WeChatRequest.httpGet(
“https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=“?+?toKen);
}

/**
?*?將菜單全部刪除
?*/
public?static?void?delAll(){
//獲取ToKen?由于返回的是JSONobject所以可使用get(key)返回一個object值??最后使用toString()轉換字符串
String?toKen?=?WeChatRequest.httpGet(
“https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential“?+
“&appid=wx6ec567de94aa7792&secret=480dbdf8f138c41edd201231e340e4da“
).get(“access_token“).toString();
//最后以Post方式提交至https://api.weixin.qq.com/cgi-bin/menu/create?access_token=
WeChatRequest.httpGet(
“https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=“?+?toKen);
}


/**
?*?菜單的增加
?*/
public?static?void?add(){
String?jsonString?=?
“{\“button\“:“
+?“[{\“name\“:\“北大青鳥\““
+?“\“sub_button\“:[“
+?“{\“name\“:\“學術部1\“\“type\“:\“view\“\“url\“:\“http://www.taobao.com\“}“
+?“{\“name\“:\“教職部\“\“type\“:\“view\“\“url\“:\“http://www.qq.com\“}“
+?“{\“name\“:\“財務部\“\“type\“:\“view\“\“url\“:\“http://www.hao123.com\“}]“
+?“ \“type\“:\“click\“}“
+?“{\“name\“:\“公司介紹\“\“type\“:\“click\“\“key\“:\“qiqi\“}“
+?“{\“name\“:\“聯系客服\“\“type\“:\“view\“\“url\“:\“http://www.qq.com\“}]“
+?“}“;



//獲取ToKen?由于返回的是JSONobject所以可使用get(key)返回一個object值??最后使用toString()轉換字符串
String?toKen?=?WeChatRequest.httpGet(
“https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential“?+
“&appid=wxb00fed1cef9ec76b&secret=b1f91e606cf801b2e5ac0f3399d63296“
).get(“access_token“).toString();



//最后以Post方式提交至https://api.weixin.qq.com/cgi-bin/menu/create?access_token=
WeChatRequest.httpPost(
“https://api.weixin.qq.com/cgi-bin/menu/create?access_token=“?+?toKen?
jsonString);
}


/**
?*?查詢出新創建的菜單列表JSON
?*/
public?static?void?query(){
//獲取ToKen?由于返回的是JSONobject所以可使用get(key)返回一個object值??最后使用toString()轉換字符串
String?toKen?=?WeChatRequest.httpGet(
“https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential“?+
“&appid=wx6ec567de94aa7792&secret=480dbdf8f138c41edd201231e340e4da“
).get(“access_token“).toString();
//最后以Post方式提交至https://api.weixin.qq.com/cgi-bin/menu/create?access_token=
WeChatRequest.httpGet(

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????377298??2017-12-08?17:35??001-微信接口.docx

?????文件????????529??2017-12-02?13:58??weixin01\.classpath

?????文件????????297??2017-12-02?13:58??weixin01\.mymetadata

?????文件???????1751??2017-12-02?15:03??weixin01\.project

?????文件????????500??2017-12-02?15:37??weixin01\.settings\.jsdtscope

?????文件????????395??2017-12-02?13:58??weixin01\.settings\org.eclipse.jdt.core.prefs

?????文件????????462??2017-12-02?13:58??weixin01\.settings\org.eclipse.wst.common.component

?????文件????????252??2017-12-02?13:58??weixin01\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2017-12-02?13:58??weixin01\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2017-12-02?13:58??weixin01\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件???????3275??2017-12-08?17:33??weixin01\src\test\Test1.java

?????文件???????3017??2017-12-02?14:05??weixin01\src\util\WeChatRequest.java

?????文件????????829??2017-12-02?13:58??weixin01\WebRoot\index.jsp

?????文件?????????36??2017-12-02?13:58??weixin01\WebRoot\meta-INF\MANIFEST.MF

?????文件???????2249??2017-12-08?17:33??weixin01\WebRoot\WEB-INF\classes\test\Test1.class

?????文件???????4180??2017-12-02?14:05??weixin01\WebRoot\WEB-INF\classes\util\WeChatRequest.class

?????文件??????60841??2017-12-02?13:58??weixin01\WebRoot\WEB-INF\lib\commons-logging.jar

?????文件?????392972??2017-12-02?13:58??weixin01\WebRoot\WEB-INF\lib\fastjson-1.2.13.jar

?????文件?????747794??2017-12-02?13:58??weixin01\WebRoot\WEB-INF\lib\httpclient-4.5.3.jar

?????文件?????323824??2017-12-02?13:58??weixin01\WebRoot\WEB-INF\lib\httpcore-4.4.6.jar

?????文件????????404??2017-12-02?13:58??weixin01\WebRoot\WEB-INF\web.xml

?????目錄??????????0??2017-12-08?17:38??weixin01\WebRoot\WEB-INF\classes\test

?????目錄??????????0??2017-12-08?17:38??weixin01\WebRoot\WEB-INF\classes\util

?????目錄??????????0??2017-12-08?17:38??weixin01\WebRoot\WEB-INF\classes

?????目錄??????????0??2017-12-08?17:38??weixin01\WebRoot\WEB-INF\lib

?????目錄??????????0??2017-12-08?17:38??weixin01\src\test

?????目錄??????????0??2017-12-08?17:38??weixin01\src\util

?????目錄??????????0??2017-12-08?17:38??weixin01\WebRoot\meta-INF

?????目錄??????????0??2017-12-08?17:38??weixin01\WebRoot\WEB-INF

?????目錄??????????0??2017-12-02?13:58??weixin01\.myeclipse

............此處省略7個文件信息

評論

共有 條評論

相關資源