The Movie Database qoldaýy

This works just fine when I test it on the documents page.

$headers=@{} $headers.Add("accept", "application/json") $headers.Add("Authorization", "Bearer <TOP SECRET NUMBER>") $response = Invoke-WebRequest -Uri 'https://api.themoviedb.org/3/search/movie?query=Bosko%2C%20the%20Talk-Ink%20Kid&include_adult=false&language=en-US&page=1' -Method GET -Headers $headers

But when I try testing it via a PS 7 terminal, I just get an error saying it can't parse the hostname. I even tried it with "$SearchTerm" being a single word to see if it was special characters throwing it off. I'm sure it's just a syntax problem. Might be something odd about the latest Powershell update. But I'm not savvy enough to sort it out myself.

$TMDBBaseUri = "https://api.themoviedb.org/3/search/movie?query=" $TMDBBearer = <TOP SECRET NUMBER> $SearchTerm = "Bosko, the Talk-Ink Kid" $TargetUrl = $TMDBBaseUri + $SearchTerm + "&include_adult=false&language=en-US&page=1" $headers=@{} $headers.Add("accept", "application/json") $headers.Add("Authorization", "Bearer $TMDBBearer") $response = Invoke-WebRequest -Uri '$TargetUrl' -Method GET -Headers $headers

Throws this error.

Invoke-WebRequest: Line | 4 | $response = Invoke-WebRequest -Uri '$TargetUrl' -Method GET -Headers … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Invalid URI: The hostname could not be parsed.

I hope this comes out better than the preview shows. Code keeps lining up in a string instead of a block.

1 jaýap (1 ishinen 1 betinde)

Jump to last post

I finally managed to sort it out.

Fılmdi nemese kórsetimdi taba almadyńyz ba? Ony jasaý úshin kirińiz.

Ǵalamdyq

s kezelimdi izdeý jolaǵyna aýystyrý
p profaıl mázirin ashý
esc ashyq terezeni jabý
? perneler tirkesimi terezesin ashý

Tasyǵyshtar betterinde

b artqa oralý (nemese qoldanylatyn bolsa, tektikke)
e óńdeý betine ótý

Telemaýsym betterinde

(oń jaq kórsetki) kelesi telemaýsymǵa ótý
(sol jaq kórsetki) aldyńǵy telemaýsymǵa ótý

Epizod betterinde

(oń jaq kórsetki) kelesi epızodqa ótý
(sol jaq kórsetki) aldyńǵy epızodqa ótý

Barlyq keskin betterinde

a keskin ústeý terezesin ashý

Barlyq óńdeý betterinde

t tárjime tańdaǵyshyn ashý
ctrl+ s pishindi jiberý

Talqylaý betterinde

n jańa talqylaýdy jasaý
w qaralǵan kúıin aýystyrý
p jalpy/jekeni aýystyrý
c jabý/ashýdy aýystyrý
a áreketterdi ashý
r talqylaýǵa jaýap berý
l sońǵy jaýapqa ótý
ctrl+ enter habaryńyzdy jiberý
(oń jaq kórsetki) kelesi betke
(sol jaq kórsetki) aldyńǵy betke

Parametrler

Want to rate or add this item to a list?

Kirý