使用Oracle在社交网络上发布
使用Oracle在社交网络中发布
Oracle : API文档
使用Oracle在社交网络上发布
declare
l_url varchar2(200) := 'http://www.afilnet.com/api/http/?class=social'||'&'||'method=send'||'&'||'user=user'||'&'||'password=password'||'&'||'to=123456'||'&'||'message=message+test'||'&'||'scheduledatetime='||'&'||'url='||'&'||'picture=';
l_req utl_http.req;
l_resp utl_http.resp;
l_text varchar2(32767);
begin
l_req := utl_http.begin_request(l_url);
l_resp := utl_http.get_response(l_req);
begin
loop
utl_http.read_text(l_resp, l_text, 32766);
dbms_output.put_line(l_text);
end loop;
exception
when utl_http.end_of_body then
utl_http.end_response(l_resp);
end;
end;
发出请求时,您将收到以下字段:
下面列出了可能的错误代码
参数:
请求: