账号通
    

账号  

密码  

2777

查看

7

回复
主题:[ICMS]官方有开发熊掌号的API计划吗? [收藏主题] 转到:  
久睡成瘾 当前离线

6

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:47 分
登录次数:25 次
注册时间:2018/3/1
最后登录:2019/5/7
久睡成瘾 发表于:2018/11/16 11:08:07   | 显示全部帖子 查看该作者主题 楼主 
function BytesToBstr(body,Cset)

    dim objstream

    set objstream = Server.CreateObject("adodb.stream")

    objstream.Type = 1

    objstream.Mode =3

    objstream.Open

    objstream.Write body

    objstream.Position = 0

    objstream.Type = 2

    objstream.Charset = Cset

    BytesToBstr = objstream.ReadText

    objstream.Close

    set objstream = nothing

End function



function postHTTPPage(url,data)

    dim Http                       

    set Http=server.createobject("MSXML2.SERVERXMLHTTP")

    Http.open "POST",url

    Http.setRequestHeader "CONTENT-TYPE", "text/plain"

    'Http.setRequestHeader "User-Agent", "curl/7.12.1"

    'Http.setRequestHeader "Content-Length", "83"

    Http.send(data)

    if Http.readystate<>4 then

        exit function

    End if

    PostHTTPPage=bytesToBSTR(Http.responseBody,"utf-8")

    response.Write("<div style='padding-top:100px; font-size:24px; text-align:center; color:#d00;'>"&PostHTTPPage&"</div>")

    set http=nothing

    if err.number<>0 then err.Clear

End function



然后调用函数即可

postData = "http://www.hbap.net/News/4213581330.html"

postUrl = "http://data.zz.baidu.com/urls?appid=xxxx&token=xxxxx&type=realtime"

call postHTTPPage(postUrl,postData)



这个是代码  但是我不知道该加到哪里。
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
久睡成瘾 当前离线

6

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:47 分
登录次数:25 次
注册时间:2018/3/1
最后登录:2019/5/7
久睡成瘾 发表于:2018/11/23 13:42:28   | 显示全部帖子 查看该作者主题 沙发 
做在线知识付费 选科汛云开店
可以说下怎么加吗 asp 不太会
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
久睡成瘾 当前离线

6

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:47 分
登录次数:25 次
注册时间:2018/3/1
最后登录:2019/5/7
久睡成瘾 发表于:2018/12/20 11:02:52   | 显示全部帖子 查看该作者主题 藤椅 
科汛智能建站系统
Dim rs

Dim url

Dim x

Dim arr

Dim list

<!--查询当天产生数据的 Fname-->



Set rs=Conn.Execute("select Fname from KS_Article where adddate >= date() and adddate < DateAdd('d', 1, date())")

<!--字符串拼接放到list 中-->

url="http://www.xxx.com/news_"

arr = rs.GetRows()

for each  x in arr

      list = list&url&x&"<br>"

next



postUrl = "http://data.zz.baidu.com/urls?appid={id}&token={token

}&type=realtime"

call postHTTPPage(postUrl, list)

我这样显示提交了,但是只提交了一条

,提交多条数据提交怎么写





 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.08594秒 powered by KesionCMS 9.0