def get_mocked_response(self): email_response = MockedResponse( 200, """{"elements": [{"handle": "urn:li:emailAddress:319371470", "handle~": {"emailAddress": "*****@*****.**"}}]}""" ) email_response.ok = True profile_response = MockedResponse( 200, """{ "profilePicture": { "displayImage": "urn:li:digitalmediaAsset:12345abcdefgh-12abcd" }, "id": "3735408165", "lastName": { "preferredLocale": { "language": "en", "country": "US" }, "localized": { "en_US": "Exampleton" } }, "firstName": { "preferredLocale": { "language": "en", "country": "US" }, "localized": { "en_US": "Larry" } } }""") profile_response.ok = True return [email_response, profile_response]
def get_mocked_response(self): response = MockedResponse( 200, """ { "id": "630595557", "name": "Raymond Penners", "first_name": "Raymond", "last_name": "Penners", "email": "*****@*****.**", "link": "https://www.facebook.com/raymond.penners", "username": "******", "birthday": "07/17/1973", "work": [ { "employer": { "id": "204953799537777", "name": "IntenCT" } } ], "timezone": 1, "locale": "nl_NL", "verified": true, "updated_time": "2012-11-30T20:40:33+0000" }""") response.ok = True return response
def get_mocked_response(self): response = MockedResponse( 200, """ {"displayName": "John Smith", "mobilePhone": null, "preferredLanguage": "en-US", "jobTitle": "Director", "userPrincipalName": "*****@*****.**", "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity", "officeLocation": "Paris", "businessPhones": [], "mail": "*****@*****.**", "surname": "Smith", "givenName": "John", "id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"} """) response.ok = True return response