简体   繁体   English

没有SDK的AWS Mobile

[英]AWS Mobile without the SDK

Is it possible to use the AWS mobile services (Cognito, Analytics, etc) without linking all the SDK in an Xcode project? 是否可以在不链接Xcode项目中所有SDK的情况下使用AWS移动服务(认知,分析等)?

Background: * While I am not new to AWS nor mobile programming, the following case is challenging: We are shipping a mobile "framework" (not app) that uses our AWS for some parts (Authentication, logs). 背景:*虽然我对AWS和移动编程都不是陌生的,但以下情况颇具挑战性:我们正在交付使用AWS用于某些部分(身份验证,日志)的移动“框架”(非应用程序)。 And, as the AWS SDK has to be linked in the app project itself, this will require us asking all the clients (developers) to download and link it in their own projects. 而且,由于必须在应用程序项目本身中链接AWS开发工具包,这将要求我们要求所有客户端(开发人员)将其下载并链接到他们自己的项目中。

What is used in the framework is just one request for authentication and one for logging (success/failure, disconnection), so no need for all the SDK. 框架中使用的只是一个身份验证请求和一个日志记录请求(成功/失败,断开连接),因此不需要所有SDK。 I wonder if there is a possibility to request AWS services without linking against the SDK? 我想知道是否有可能在不链接SDK的情况下请求AWS服务吗?

I know it's possible to put then under an umbrella SDK, or do some cherry picking from their git repository, but both of these seem like overkill. 我知道有可能将其放到一个伞形SDK中,或者从其git存储库中进行一些挑选,但是这两者似乎都太过分了。

As the request itself is a simple URL with Get/Post, is there a possibility (or tutorial) on constructing the request manually via NSURLConnexion/NSURLSession, etc? 由于请求本身是带有Get / Post的简单URL,是否有可能(或教程)通过NSURLConnexion / NSURLSession等手动构造请求?

Thank you 谢谢

Talking to the AWS APIs is actually not that hard. 与AWS API进行通讯实际上并不难。 The main difficulty is signing your http requests , and that's not nearly as bad as it sounds. 主要的困难是对您的http请求进行签名 ,这并不像听起来那样糟糕。 Which leaves xml parsing accounting for most of the unpleasantness. 这使得xml解析解决了大多数不愉快的事情。

I've done it in go . 我已经完成了 The most informative part is probably the signing tests . 最有用的部分可能是签名测试

Indeed, it is possible. 确实,这是可能的。 You will have to code calls to AWS at the REST level. 您将必须在REST级别对对AWS的调用进行编码。 Everything you need is in the documentation of AWS. 您需要的一切都在AWS文档中。

For instance, if you needed to execute actions on EC2, here's what you'd have to code: 例如,如果您需要在EC2上执行操作,则必须编写以下代码:

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#structure-of-a-get-request http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#structure-of-a-get-request

You can call the HTTP APIs directly. 您可以直接调用HTTP API。 Since the AWS Mobile SDK for iOS and Android are open source, you can look at them directly. 由于适用于iOS和Android的AWS Mobile SDK是开源的,因此您可以直接查看它们。 Find the AWS Mobile SDK for iOS Source on Github, and the AWS Mobile SDK for Android on Github . 在Github上找到适用于iOSAWS Mobile SDK源,在Github上找到适用于AndroidAWS Mobile SDK Since you mentioned you need authentication request on iOS I am guessing you're looking for the Cognito Identity in AWSCore source . 既然您提到过您需要在iOS上进行身份验证请求,所以我猜您正在AWSCore源中寻找Cognito身份

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

相关问题 没有SDK的AWS Rest API - AWS Rest API without SDK 安装CocoaPods和AWS Mobile iOS SDK - Installing CocoaPods and AWS Mobile iOS SDK Google 移动广告 SDK 在没有 AppMeasurement 的情况下进行了初始化 - The Google Mobile Ads SDK was initialized without AppMeasurement 适用于iOS / Android的AWS Mobile SDK中内置的网络的安全性如何? - How secure is the networking built into AWS Mobile SDK for iOS/Android? 在AWS Mobile SDK中使用Quickblox Pod文件的iOS构建错误 - iOS Build Error Using Quickblox Pod file in AWS Mobile SDK AWS Mobile SDK是否支持基于cordova的混合应用程序? - Does AWS Mobile SDK support cordova based hybrid application? 如何在代码中创建 AWS SNS 主题(iOS Mobile Hub SDK) - How to create AWS SNS Topic in code (iOS Mobile Hub SDK) 在哪里可以下载旧版本的AWS-Mobile-SDK - Where can I download older version AWS-Mobile-SDK AWS Mobile iOS SDK无法正确构建AWSCognitoSyncService(失败) - AWS Mobile iOS SDK not building AWSCognitoSyncService correctly (fails) 'GADInvalidInitializationException',原因:'Google 移动广告 SDK 在没有 AppMeasurement 的情况下进行了初始化 - 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without AppMeasurement
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM