2013-04-23 25 views
1

我創建了一個連接到Google應用程序電子郵件的軟件,並允許我爲他們的信息爲指定用戶創建簽名。在Google應用程序中,域名管理不可能編輯更多「高級」字段,例如公司地址,傳真,電子郵件,標題,暱稱等。所以我使用Flash Panel爲我提供了這種可能性。但爲此,我需要字段API模式將其添加到我的配置中,以便將Google字段與我的合併字段連接起來。我設法使它像某些領域的工作:通過添加姓名,公司名稱,電子郵箱地址,各類電話,職務,部門,經理,傳真號碼在我的配置文件如下:用戶字段的Google API模式

<string>name=Name.FullName</string> 
<string>company=Organizations[Rel:http://schemas.google.com/g/2005#work].Name</string> 
<string>mail=PrimaryEmail.Address</string> 
<string>mobile=Phonenumbers[Rel:http://schemas.google.com/g/2005#mobile].Value</string> 
<string>title=Organizations[Rel:http://schemas.google.com/g/2005#work].Title</string> 
<string>department=Organizations[Rel:http://schemas.google.com/g/2005#work].Department</string> 
<string>managerGA=ContactEntry.Relations[Rel:manager].Value</string> 
<string>phone number=Phonenumbers[Rel:http://schemas.google.com/g/2005#work_fax].Value</string> 
<string>emlHome=Emails[Rel:http://schemas.google.com/g/2005#home].Address</string> 
or 
<string>homeEml=Emails[Home:true].Address</string> 

什麼之前「=」用於連接它只是一個名字和我需要的是「=」 ..

我已搜查後,通過谷歌文檔,但我沒有設法找到正確的API架構格式是什麼對於像國家,城市,街道,暱稱,照片,網站,URL,註釋,組織單位,Aka等等的一些領域。同樣在Flash Panel中,可以添加自定義字段,如果我可以將它們與來自我的簽名模板編輯器的合併字段連接起來,那也是很好的選擇。有人可以幫助我使用正確的或我在哪裏/如何找到它們?

此外,例如,如果用戶有兩個家庭電子郵件,我知道如何檢索第一個,但字符串應該如何爲第二個?

回答

0

這是一箇舊的未答覆的問題,我發現順帶一提。

該示例使用將其在2013年十二月棄用配置文件API見遷移指南:https://developers.google.com/admin-sdk/directory/v1/guides/migrate

作爲2016,API是管理SDK的用戶的資源。該API文檔是在這裏:https://developers.google.com/admin-sdk/directory/v1/reference/users/update

可以使用User.primaryEmail對谷歌Apps帳戶的ID /地址,您可以通過User.emails[]數組任何其他電子郵件地址重複。

相關問題