Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

api-amazontranslate

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-amazontranslate

Access Amazon Translate via HTTP API.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Access Amazon Translate via HTTP API.

setup

microservice

  1. Download this package as .zip.
  2. Create a new lambda function on AWS Lambda.
  3. In Function Code, select Code entry type as .zip.
  4. Select Add triggers , API Gateway.
  5. In API, select Create a new API.
  6. For Security, select Open.
  7. Select Add, and Save.
  8. Copy the API endpoint URL.

test

  1. Install RestMan extension for using HTTP API.
  2. For Enter url here..., paste API endpoint URL.
  3. API data is sent through Body -> RAW.

usage

{
  "method": "translateText",
  "params": {
    "Text": "I like milk.",
    "SourceLanguageCode": "auto",
    "TargetLanguageCode": "es"
  }
}
// {
//     "data": {
//         "TranslatedText": "me gusta la leche,",
//         "SourceLanguageCode": "en",
//         "TargetLanguageCode": "es"
//     }
// }


{
  "method": "translateText",
  "params": {
    "Text": "I like milk.",
    "TargetLanguageCode": "es"
  }
}
// {
//     "err": {
//         "message": "Missing required key 'SourceLanguageCode' in params",
//         "code": "MissingRequiredParameter",
//         "time": "2019-01-05T10:48:59.718Z"
//     }
// }

serverlessf

References: AWS Translate SDK.

Keywords

FAQs

Package last updated on 17 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc