彩票查询年接口

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Net.Security;

using System.Security.Cryptography.X509Certificates;

using System.Net;

using System.IO;

using System.IO.Compression;

using System.Text.RegularExpressions;

using System.Web.Script.Serialization;

namespace caipiao

{

class Program

{

static void Main(string[] args)

{

string key = "****************************";//申请的key值

int id=3;

string url = "http://apis.haoservice.com/lifeservice/lottery/query?id="+id+"&key="+key;

WebClient wc = new WebClient();

wc.Encoding = Encoding.UTF8;

string str = wc.DownloadString(url);

Console.WriteLine(str);

Console.ReadKey();

}

}

}

彩票查询年接口返回示例

接口信息

URL:http://apis.haoservice.com/lifeservice/lottery/query
支持格式:json

http请求方式:GET

DEMO:http://apis.haoservice.com/lifeservice/lottery/query?id=3&key=您申请的APPKEY
返回结果:
{
"reason":"Success",
"error_code":0,
"result":{
"lottery":"福彩3D", /*彩票类型*/
"lottery_no":"2014054", /*期号*/
"lottery_time":"2014-03-03", /*开奖日期*/
"lottery_nums":"2 5 7 ", /*开奖号码*/
"lottery_sales":"53,297,148" /*本期销量*/
}
}

备注:

先在网页 (http://www.haoservice.com/docs/33)上申请key值,填入参数.

若有错误,请参照一下代码表

错误代码表:

返回码 说明

0 成功

10001 错误的请求KEY

10002 该KEY无请求权限

10003 KEY过期

10004 错误的SDK KEY

10005 应用未审核超时,请提交认证

10007 未知的请求源,(服务器没有获取到IP地址)

10008 被禁止的IP

10009 被禁止的KEY

10011 当前IP请求超过限制

10012 当前Key请求超过限制

10013 测试KEY超过请求限制

10020 接口维护

10021 接口停用

10022 appKey按需剩余请求次数为零

10023 请求IP无效

10024 网络错误

10025 没有查询到结果

时间: 2024-08-27 08:14:55

彩票查询年接口的相关文章

彩票查询年接口返回示例

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Net; using System.IO; using System.IO.Compression; using System.Text.Re

彩票查询结果

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.Net; using System.IO; using System.IO.Compression; using System.Text.Re

微信公众平台消息接口开发 彩票查询

一.获取数据 目前很多网站都提供彩票信息查询,所以取得彩票数据是件很容易的事.方倍工作室开发出彩票查询接口 API,目前已开通'双色球','3D','七乐彩','大乐透','七星彩','排列3','排列5','胜负彩','六场半全场','四场进球' 10种数据,每日同步更新 使用方式为直接在URL中提交彩票名称即可,名称需要先做urlencode调用url方法:以下是调用双色球方法 http://api2.sinaapp.com/search/lottery/?appkey=0020130430

彩票查询接口

彩票查询接口using System;using System.Text;using System.Net;namespace caipiao{ class Program { static void Main(string[] args) { string key = "****************************";//申请的key值 int id=3; string url = "http://apis.haoservice.com/lifeservice/

Vuejs2.0构建一个彩票查询WebAPP(1)

说明:本人也是刚接触VUE.js,作为一个学习笔记,旨在与初学者共同学习.其中编程语法错误或者写作水平刺眼,还望轻喷. 使用工具:Visual Studio Code.技术栈为vue2+vuex+axios+vue-router+mintUI 备注:Vue.js开发环境的搭建,参见window下搭建Vue.Js开发环境 一,构建项目脚手架 在我的工作区下输入vue init webpack Lottery,会自动构建项目脚手架 进入项目Lottery中输入cnpm install进行库安装 此外

快递查询API接口(trackingmore)

快递查询接口 目前提供快递查询的接口平台有: Trackingmore 快递100 快递网 不同接口的区别: (1)Trackingmore支持380家快递公司,其中有55家为国内的快递,其余325家为国际快递.具体的价格为0.6分钱/单号左右,新注册用户可以免费测试12小时. (2)快递100属于在国内做得比较早的平台,可以申请每天最多2000次的API调用,但需要给快递100做一个友链.超过2000次收费,每次0.06~0.1元不等. (3)快递网可以申请每天最多500次的API调用,但同样

通过调用支付宝查询对账单接口返回bill_download_url下载zip,解压缩

通过url下载zip对账单文件,进行解压. 读取压缩文件内容 import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileWriter; import

各种快递查询Api接口(快递鸟)

前提 应用场景 可实现需求 申请Key 快递查询Api接口 接口文档及各开发语言Demo 查询Api接口定义 系统级输入参数 应用级输入参数 返回结果参数 请求JSON参数 响应JSON参数 查询Api接口使用 温馨提示 前提 项目开发中,有些需求难免会用到关于快递的一些Api接口:本篇主要介绍的是快递的查询Api及与其他各家的不同之处: 常用的提供快递Api接口的有: 快递鸟 快递100 爱查快递 等等 如大家使用过,快递100和爱查快递等等网站提供的快递查询等接口时,你会发现,你所申请的账号

Vuejs2.0构建一个彩票查询WebAPP(2)

一,Vuex的使用 1 import Vue from 'vue' 2 import Vuex from 'vuex' 3 import MsgModules from './MsgModules' 4 Vue.use(Vuex) 5 export default new Vuex.Store({ 6 modules: { 7 msg: MsgModules 8 } 9 }) 1 export default{ 2 state: { 3 CheckedMenu: '', //菜单选中变量 4 C