You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, could you help me here?
I run this command python shared_contacts_profiles.py [email protected] --export=ml.csv
But I Receive this error
### Exporting contacts/profiles to CSV file: ml.csv
Retrieving contacts... (0 retrieved so far)
All contacts retrieved: 0 total
Retrieving profiles... (0 retrieved so far)
Traceback (most recent call last):
File "shared_contacts_profiles.py", line 1180, in <module>
main()
File "shared_contacts_profiles.py", line 1175, in main
contacts_manager.ExportMsOutlookCsv(contact_entries, profile_entries, export_csv_file)
File "shared_contacts_profiles.py", line 552, in ExportMsOutlookCsv
profile_entries))
File "shared_contacts_profiles.py", line 742, in writerows
for row in rows:
File "shared_contacts_profiles.py", line 260, in GetAllProfiles
desired_class=gdata.contacts.data.ProfilesFeed)
File "C:\Python27\lib\site-packages\gdata\client.py", line 640, in get_feed
**kwargs)
File "C:\Python27\lib\site-packages\gdata\client.py", line 319, in request
RequestError)
gdata.client.RequestError: Server responded with: 403, The Google Apps Profiles API has been officially deprecated. See https://developers.google.com/google-apps/profiles/ for more information.
The text was updated successfully, but these errors were encountered:
The error is quite clear. The API used to retrieve the profiles is deprecated.
The code needs to be ported to use the new Directory API from the Google Apps Admin SDK.
I'll give it a try.
rdoursenaud
changed the title
Problem when I Try run script
Google Apps Profiles API is deprecated
Jan 5, 2017
After having a quick glance at the code, I believe this will need a major redesign of the application.
I don't quite have the incentive to tackle this at the moment.
Any help appreciated.
Handle and parse the JSON response instead of the gdata structure
Add an Outlook serializer for the JSON data
In the meantime, if excluding the shared profiles informations from your export is an acceptable tradeoff, I think you can comment line 1174 to only export the contacts.
Hi, could you help me here?
I run this command
python shared_contacts_profiles.py [email protected] --export=ml.csv
But I Receive this error
The text was updated successfully, but these errors were encountered: