开发者

Create new gmail contacts with a url request?

I'm developing a new member sign up page with Google App Engine, I want to create a new contact each time a new user fills out his info and clicks a submit button, I looked into Google contacts api, but it doesn't seem to work for me, I've included all the jar files, but it still complained that something is missing, see my previous questions for details at :

How can google app engine create new contacts? and Google App add contact err开发者_JAVA技巧or?

So I wonder if there is a simpler way to add new contacts through a URL request, something like this :

https://google.contacts.com/new_contact?App_Name=myapp&Id=myId&password=mypwd&name=newUserName&email=newuser@email.com...

Does something like that exist ? If it does, it will avoid a lot of coding and confusion. Just add a new contact each time a request is made and authenticated.


It's not quite that simple, but it's possible.

See http://code.google.com/apis/contacts/docs/3.0/developers_guide_protocol.html#Creating

Basically, your app would need to authenticate against your account using OAuth, the form the body of the create request, and then POST it to https://www.google.com/m8/feeds/contacts/default/full to add the contact.

The docs are quite thorough - I recommend a complete readthrough.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜