- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: OS X
- 软件首页: https://github.com/octokit/octokit.objc
软件介绍
octokit.objc 是 Objective-C的 GitHub API 客户端。
OctoKit 是 Cocoa and Cocoa Touch 框架,用来与 GitHub API, 进行交互,可使用 AFNetworking,Mantle 和 ReactiveCocoa
发出请求:
为了与API进行交互,您必须实例化一个 OCTClient. 这里有两种可创建无需验证客户端的方法。
-
-initWithServer:这是实例化一个客户端的最基本的方法. 它可以接收一个 OCTServer, 用来判断是否要连接到 GitHub.com 或者GitHub Enterprise 接口。
-
+unauthenticatedClientWithUser:这种方法和上面的相似, 但是它允许你设置一个 active 用户, 这需要有特定的请求。
采用第二种方法,我们可以获得更多操作。创建一个连接到 GitHub.com 的客户端。
OCTUser *user = [OCTUser userWithRawLogin:username server:OCTServer.dotComServer]; OCTClient *client = [OCTClient unauthenticatedClientWithUser:user];
获得客户端后,我们便可以开始抓取数据。在OCTClient 的每个请求方法会返回一个ReactiveCocoa信号这类似于一个future or
promise
// Prepares a request that will load all of the user's repositories, represented // by `OCTRepository` objects. // Note that the request is not actually _sent_ until you use one of the // -subscribe… methods below. RACSignal *request = [client fetchUserRepositories];
风云Flash ActionScript高级编程艺术
赵英杰 / 第1版 (2006年7月1日) / 2006-7 / 45.00元
本书从基本的Actionscript语言概念开始介绍,配以实际的程序实例并穿插生动的图示说明,深入浅出地讲解Flash ActionScript程序的运用逻辑与概念,让读者从实例中学习进而融会贯通。同时,本书也说明面向对象程序设计(00P)的语法及常用类别实例,提升读者制作F1ash作品的造诣和能力。全书共分为10章,精彩实例包括以三角函数制作的抽奖轮盘,FlashLite手机版孔明棋游戏,Bit......一起来看看 《风云Flash ActionScript高级编程艺术》 这本书的介绍吧!
