Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Tudo que estiver relacionado a tratamento de dados, Power Query editor e linguagem M
Por ViniciusCastilho
#61034
Boa Tarde

Estou precisando integrar a api do Mercado Livre no Power BI, preciso realizar um Post dentro do Body
Mas nunca realizei um Post no Power Bi, poderiam me dar uma auxilio?

A base para chamar a API é a seguinte:
Código: Selecionar todos
curl -X POST \
-H 'accept: application/json' \
-H 'content-type: application/x-www-form-urlencoded' \
'https://api.mercadolibre.com/oauth/token' \
-d 'grant_type=authorization_code' \
-d 'client_id=$APP_ID' \
-d 'client_secret=$SECRET_KEY' \
-d 'code=$SERVER_GENERATED_AUTHORIZATION_CODE' \
-d 'redirect_uri=$REDIRECT_URI'
Agradeço desde já
#61111
Bom Dia

Tentei desenvolver o seguinte código, mas mesmo assim ainda não me retorna o Token como preciso
Código: Selecionar todos
let 
    body = "
        { 
            ""grant_type"": ""authorization_code"",
            ""client_id"": ""--"",
            ""client_secret"": ""--"",
            ""code"": ""--""
            ""redirect_uri"": ""--""
        }
        ",

    getToken = 
    Json.Document(
        Web.Contents (
            "https://api.mercadolibre.com",
            [
                RelativePath = "/oauth/token",
                Content=Text.ToBinary(body),
                Headers = [
                    #"ContentType" = "application/json"
                ]
            ]
        )
    )    
in body
Alguém pode me dar uma luz do que fazer para funcionar?
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord