- 授权协议: 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];
C程序设计语言
Brian W. Kernighan、Dennis M. Ritchie / 机械工业出版社 / 2006-8-1 / 35.00元
在计算机发展的历史上,没有哪一种程序设计语言像C语言这样应用广泛。本书是C语言的设计者之一Dennis M.Ritchie和著名计算机科学家Brian W.Kernighan合著的一本介绍C语言的权威经典著作。我们现在见到的大量论述C语言程序设计的教材和专著均以此书为蓝本。本书第1版中介绍的C语言成为后来广泛使用的C语言版本——标准C的基础。人们熟知的“hello,World"程序就是由本书首次引......一起来看看 《C程序设计语言》 这本书的介绍吧!
