简体   繁体   English

使用 aws-sdk-ios 设置 aws-lex 请求属性

[英]setting aws-lex request attributes with aws-sdk-ios

Is there a way to set request attributes with iOS SDK?有没有办法使用 iOS SDK 设置请求属性? I am using this on android:我在 android 上使用这个:

textInForAudioOut(java.lang.String text, java.util.Map<java.lang.String,java.lang.String> sessionAttributes, java.util.Map<java.lang.String,java.lang.String> requestAttributes)

but i can't find the equivalent in iOS.但我在 iOS 中找不到等价物。 Is there another way to add request attributes to requests in iOS?有没有另一种方法可以向 iOS 中的请求添加请求属性?

If you are using AWSLexPostTextRequest or AWSLexPostContentRequest, you can set it on the request object如果您使用的是 AWSLexPostTextRequest 或 AWSLexPostContentRequest,则可以在请求对象上进行设置

https://github.com/aws-amplify/aws-sdk-ios/blob/518ad4d1506ee696965a5e57973e2d4226d835a5/AWSLex/AWSLexModel.m#L439 https://github.com/aws-amplify/aws-sdk-ios/blob/518ad4d1506ee696965a5e57973e2d4226d835a5/AWSLex/AWSLexModel.m#L439

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

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