简体   繁体   English

如何在iOS上集成Tr​​ipit?

[英]How to integrate Tripit on ios?

I need to add to my iPhone app a log-in btn through Tripit . 我需要通过Tripit将 btn登录添加到我的iPhone应用程序。 I understand that I need to connect through OAuth and then integrate Tripit API. 我了解我需要通过OAuth进行连接,然后集成Tripit API。

But I don't understand what is going on, which part of the code (of both OAuth and Trippit) should I implement? 但是我不知道发生了什么,我应该实现代码的哪一部分(OAuth和Trippit)? and where (is the whole OAuth code with the log-in supposed to be called when pressing the log-in btn?). 以及在哪里(按登录btn时应该调用整个带有登录的OAuth代码?)。

Does anyone have maybe an example? 有人可能有一个例子吗? Or a lighter explanation for the API for ios? 还是针对iOS API的更简洁的解释?

OAuth is used to connect your app to the user's Tripit account. OAuth用于将您的应用程序连接到用户的Tripit帐户。 After connecting, you will have OAuth tokens to store and use when making the API requests. 连接后,您将在发出API请求时存储和使用OAuth令牌。 Here is some information from a Tripit person on suggestions for OAuth and JSON libraries to use on iOS. 这是Tripit员工提供的有关在iOS上使用OAuth和JSON库的建议的一些信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM