fork download
  1. /* package whatever; // don't place ```
  2. import requests
  3. api_url = "https://a...content-available-to-author-only...a.ai/mea/v1"
  4. api_key = "1234567890"
  5. headers = {
  6.   'Authorization': f'Bearer {api_key}',
  7.   'Content-Type': 'application/json'
  8. }
  9. params = {
  10.   'key': f'{api_key}'
  11. }
  12. data = {
  13.   "data": "api key is 1234567891011"
  14. }
  15. try:
  16.   response = requests.post(api_url, headers=headers, params=params, json=data)
  17.   print(response.json())
  18.   print(response.status_code)
  19. except Exception as e:
  20.   print(e)
  21. ``` name! */
  22.  
  23. import java.util.*;
  24. import java.lang.*;
  25. import java.io.*;
  26.  
  27. /* Name of the class has to be "Main" only if the class is public. */
  28. class Ideone
  29. {
  30. public static void main (String[] args) throws java.lang.Exception
  31. {
  32. // your code goes here
  33. }
  34. }
Success #stdin #stdout 0.1s 54660KB
stdin
Standard input is empty
stdout
Standard output is empty