简体   繁体   English

使用PHP curl获取Outlook地址簿列表?

[英]Get outlook address book list using php curl?

I would like to import all contacts from outlook address book. 我想从Outlook地址簿中导入所有联系人。 I want to know is there any way to bring all the contacts from outlook using php. 我想知道有什么方法可以使用php从Outlook中获取所有联系人。 Thanks 谢谢

You could try to export all the contacts to a csv file. 您可以尝试将所有联系人导出到csv文件。

  1. File | 档案| Import and Export... 进出口...
  2. Export a file 导出文件
  3. Select comma seperated values 选择逗号分隔的值
  4. Select the Contacts folder 选择联系人文件夹
  5. Save file to desktop 将文件保存到桌面

If you have done this, you could upload this file to php and parse the csv file format. 如果完成了此操作,则可以将此文件上传到php并解析csv文件格式。 An example of the outlook csv format can be found on stackoverflow 在stackoverflow上可以找到Outlook csv格式的示例

You can use the php function str_getcsv to parse the csv to an array. 您可以使用php函数str_getcsv将csv解析为数组。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM