Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ziyabikram96
Helper V
Helper V

No poder acceder a los datos a través de API Post Request

Hola

He estado tratando de importar datos usando Trulinks Road Haulage Association, UK(RHA) APIs. La mayoría de las solicitudes de API son POST mientras que el resto de ellas son GET. Las API GET han sido sencillas mientras que las solicitudes POST plantean problemas. De forma predeterminada, Web.Contents envía una solicitud GET mientras se necesita un enfoque diferente para POST.

ziyabikram96_0-1608720660347.png

ziyabikram96_1-1608720828765.png

¿Cómo puedo importar datos a través de la solicitud POST?

Gracias

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

No @ziyabikram96

La inclusión de Contenido en su solicitud hace que Web.Contents realice un POST, por ejemplo:

Source = Json.Document(Web.Contents(url,[
Headers = [#"Content-Type"="application/json"],
Content = Text.ToBinary(body)
]
))

No sé exactamente lo que necesita proporcionar en la solicitud (por ejemplo, API Auth,Headers) ya que no conozco la API, pero esto debería ayudarle a empezar. Vuelva a publicar si necesita más ayuda.

saludos

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

3 REPLIES 3
ziyabikram96
Helper V
Helper V

Muchas gracias, Philip.

PhilipTreacy
Super User
Super User

No @ziyabikram96

La inclusión de Contenido en su solicitud hace que Web.Contents realice un POST, por ejemplo:

Source = Json.Document(Web.Contents(url,[
Headers = [#"Content-Type"="application/json"],
Content = Text.ToBinary(body)
]
))

No sé exactamente lo que necesita proporcionar en la solicitud (por ejemplo, API Auth,Headers) ya que no conozco la API, pero esto debería ayudarle a empezar. Vuelva a publicar si necesita más ayuda.

saludos

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.