By using AWS re:Post, you agree to the Terms of Use

Questions tagged with Support API

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

StartCallAnalyticsJob : User is not authorized to access this resource

Hi everybody, I wanna ask you about AWS Transcribe Analytics Call. API is well with AWS Transcribe but I need also sentiment Analysis, so I try to use AWS Transcribe Analytics. There is my code : ``` from __future__ import print_function import time import boto3 transcribe = boto3.client('transcribe', 'us-east-1') job_name = "my-first-call-analytics-job" job_uri = "PATH_S3_TO_WAV_WHO_HAD_WORD_FOR_AWS_TRANSCRIBE" output_location = "PATH_TO_CREATED_FOLDER" data_access_role = "arn:aws:s3:::MY_BUCKET_NAME_WHERE_WAV_FILES" transcribe.start_call_analytics_job( CallAnalyticsJobName = job_name, Media = { 'MediaFileUri': job_uri }, DataAccessRoleArn = data_access_role, OutputLocation = output_location, ChannelDefinitions = [ { 'ChannelId': 0, 'ParticipantRole': 'AGENT' }, { 'ChannelId': 1, 'ParticipantRole': 'CUSTOMER' } ] ) while True: status = transcribe.get_call_analytics_job(CallAnalyticsJobName = job_name) if status['CallAnalyticsJob']['CallAnalyticsJobStatus'] in ['COMPLETED', 'FAILED']: break print("Not ready yet...") time.sleep(5) print(status) ``` I had done aws configure and I use a IAM user who have AdministratorAccess. > **botocore.exceptions.ClientError: An error occurred (AccessDeniedException) when calling the StartCallAnalyticsJob operation: User: MY_ARN_USER is not authorized to access this resource** Any help please ? Thank you very much!
1
answers
0
votes
56
views
asked 3 months ago

SMS never arrive from PHP API

Hello, I tested the SNS service to send SMS to france (my country) using the php api, it worked perfectly until I reach the limit. Then I asked amazon to use the service in production, they switch my account from the sandbox to production, I've been able to send one sms and nor more. When I try now I get a statusCode of 200 with a message ID but the message never arrives. This is my code: ``` $SnSclient = new SnsClient([ 'region' => 'eu-west-3', 'version' => 'latest', 'credentials' => [ 'key' => '**********************', 'secret' => '*************************************', ],]); $sms = "Simple test"; $phone = "+33123456789"; try { $result = $SnSclient->publish([ "MessageAttributes" => [ 'AWS.SNS.SMS.SMSType' => [ 'DataType' => 'String', 'StringValue' => 'Transactional' ] ], 'Message' => $sms, 'PhoneNumber' => $phone ]); } catch (AwsException $e) { print_r($e); } print_r($result); ``` The return is like that: ```Aws\Result Object ( [data:Aws\Result:private] => Array ( [MessageId] => 9d7489b2-3662-5b52-ad7c-d299afb0fcd4 [@metadata] => Array ( [statusCode] => 200 [effectiveUri] => https://sns.eu-west-3.amazonaws.com [headers] => Array ( [x-amzn-requestid] => 2de95f01-356e-5303-9b85-042aacbc0485 [content-type] => text/xml [content-length] => 294 [date] => Tue, 21 Jun 2022 10:04:01 GMT ) [transferStats] => Array ( [http] => Array ( [0] => Array ( ) ) ) ) ) [monitoringEvents:Aws\Result:private] => Array ( ) )``` What can I check ? Thanks
0
answers
0
votes
31
views
asked 3 months ago

AmazonFresh recipe API issues with affiliate tag

Hi all! I'm attempting to use the AmazonFresh recipe API: https://www.amazon.com/afx/ingredients/verify The basic functionality works well. However, when I create a URL using the API, my `tag=` parameter is missing, despite passing it in the URL parameters like the [API documentation](https://github.com/Keto-Eating/Keto-Recipe-API/files/2857192/FILP-API-Documentation.2017-12-19.FINAL.pdf) states: > Optional URL Parameter for Amazon Associates: `?tag={your_associates_tag}` When I redirect the user to the resulting URL, the `tag=` parameter is missing. Which means I can't track or affiliate purchases :( I've uploaded a simple example here: https://trinket.io/python3/7170bc788d -- I'd expect, based on the documentation, that the resulting URL output contain a tag= parameter. Note that adding it manually doesn't help. Try going [here](https://amazon.com/afx/ingredients/landingencoded?almBrandId=QW1hem9uIEZyZXNo&encodedIngredients=H4sIAAAAAAAAAJWPS0vDUBCF_8pl1lWC2I07LVJiHwGrLpQsJsm0HUzmxvuoDSX_3XsjReyi0N1w5psz5xyAZWOoYhJn4U59HECwoTBBkEkUtm1NFkYKSt20WgKXSkX7QCRB_PIojl03Z-t-z71wnGCSvS5f4h022kuUxv1I_e1n6TybPt8vVv-Y5Hrc50GgfVl7yzvKdmQMVzHRGmtLg8cxonUGv4sAdEq0XK3RqZj6U3V6442LzoVBqSJbbnWBwsM3y3L0HUrDQ5LcTN-e3tNbyC-vGppOHlcnXc-3yPsfTcnOdnoBAAA=&tag=yumnic-21) and you'll see the cart, but the tag gets cleared. Any tips? It doesn't appear that the AmazonFresh recipe API is well known or supported, I haven't got anywhere despite trying several support channels. Thanks! - Paul
0
answers
0
votes
13
views
asked 5 months ago