call911 Posted September 30, 2020 Report Posted September 30, 2020 (edited) ( Update ) Caut programator python sau c# . [Buget cat e nevoie.] Pm. Edited October 13, 2020 by call911 Quote
call911 Posted September 30, 2020 Author Report Posted September 30, 2020 Ca idee am 100 de adrese de outlook, si vreau sa le schimb poza de la profil, si nu as vrea sa o fac manual. Quote
gigiRoman Posted October 1, 2020 Report Posted October 1, 2020 https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/contacts-rest-operations#SetContactPhoto Poti sa ii faci si prin curl. Tre sa iti mapezi cumva photo name de contact id. Banuiesc ca nu ai tu 100 de adrese de email. Aia e alta mancare de peste care depaseste limitele acestui forum. bafta! Quote
Active Members MrGrj Posted October 1, 2020 Active Members Report Posted October 1, 2020 Also, din cate stiu eu, pozele sunt stocate in AD (Active Directory). Ca idee, asa ar arata in Powershell: Set-ADUser user_1 -Replace @{thumbnailPhoto=([byte[]](Get-Content "C:\ps\user_1_photo.jpg" -Encoding byte))} 3 Quote
Nytro Posted October 1, 2020 Report Posted October 1, 2020 Partea mai complicata nu e cea in care se scrie un programel care face asta, ci aflarea unei metode simple de schimbare. Daca e vorba de outlook.com de exemplu, trebuie vazut cum se poate face login (sa nu fie vorba de un captcha acolo) cum se pastreaza sesiunea si ce request e necesar pentru schimbarea pozei. Daca se stiu aceste lucruri se poate face in 2 linii de bash cu curl si grep. 2 Quote
gigiRoman Posted October 1, 2020 Report Posted October 1, 2020 3 hours ago, Nytro said: Partea mai complicata nu e cea in care se scrie un programel care face asta, ci aflarea unei metode simple de schimbare. Daca e vorba de outlook.com de exemplu, trebuie vazut cum se poate face login (sa nu fie vorba de un captcha acolo) cum se pastreaza sesiunea si ce request e necesar pentru schimbarea pozei. Daca se stiu aceste lucruri se poate face in 2 linii de bash cu curl si grep. Outlook are oauth2 login 1 Quote
call911 Posted October 2, 2020 Author Report Posted October 2, 2020 (edited) On 10/1/2020 at 12:55 PM, gigiRoman said: Outlook are oauth2 login Conturile sunt ale mele, daca le conectez din aceiasi sursa nu cred ca o sa fie asta o problema. Edited October 2, 2020 by call911 Quote
gigiRoman Posted October 13, 2020 Report Posted October 13, 2020 Sursa: https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/photo-rest-operations Ia d-aci, iti poate face oricine in orice limbaj. Chiar si cURL. Set user photo Assign a photo to the signed-in user. The photo should be in binary. It replaces any existing photo for that user. You can use either PATCH or PUT for this operation in version 2.0. Required scope Use the following scope to set the photo of the signed-in user: user.readwrite PATCH https://outlook.office.com/api/v2.0/me/photo/$value PATCH https://outlook.office.com/api/v2.0/users('{user_id}')/photo/$value PUT https://outlook.office.com/api/v2.0/me/photo/$value PUT https://outlook.office.com/api/v2.0/users('{user_id}')/photo/$value Required scope Optional parameter Type Description Url parameters user_id string The user's email address. Sample request PATCH https://outlook.office.com/api/v2.0/me/photo/$value Content-Type: image/jpeg Include the binary data of the photo in the request body. 1 Quote
gigiRoman Posted October 13, 2020 Report Posted October 13, 2020 Sunt curios cum ai facut tu cele 100 de conturi. 1 Quote