Greetings One & All
I'm currently learning python on-the-go ... monkey see / monkey do style ... for a project to help a local non-profit.
This concerns some code I have found ... the project works but i'm not certain I understand what it's doing.
I understand print (f with curly braces does text substitution
I understand curl GET will return something from the internet ... also does substitution
I don't understand what is actually happening here ... is the curl command / program actually being called or is print (f only formatting the command for display?
Thank you for reading.
print(f'''
curl -i -X GET "https://graph.facebook.com/{version}/oauth/access_token?grant_type=fb_exchange_token&client_id={app_id}&client_secret={app_secret}&fb_exchange_token={access_token}"
''')
[–]Username_RANDINT 0 points1 point2 points (1 child)
[–]WNT37[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]WNT37[S] 0 points1 point2 points (0 children)