ClickAider

Adding multiple addresses to the Blackberry address book from any web page

As described previously Berry411 provides the ability for any web page to add addresses to the Blackberry address book. This post describes how to add arbitrarily many addresses and navigate to the web page of your choice after the address book update is complete. Berry411 defines a simple XML based scripting language that is interpreted when linked to by the browser. The key operations are illustrated in the example below. You’ll want to define a similar document on your site, substituting the values appropriate for your application. Then direct the user’s browser to “http://berry411.com/berry/handle_script?url=YOUR_URL”, where YOUR_URL is the URL-encoded URL to the XML document you created.


<?xml version=”1.0″ encoding=”UTF-8″?>
<actions>
  <add_contact firstname=”foobar” lastname=”barbar”>
    <address type=”home” street=”31 Example Street” city=”Bogusville” state=”NY”\
zip=”01239″/>
    <phone type=”home” value=”4255551212″/>
  </add_contact>

  <add_contact firstname=”foobar2″ lastname=”barbar2″>
     <address type=”work” street=”12 Sample Street” city=”Bogusville” state=”WA” \
zip=”01239″/>
    <phone type=”home” value=”2065551212″/>
  </add_contact>

   <navigate href=”http://mobile.answers.com”/>
</actions>

3 Comments so far
Leave a comment

Does this use a confirmation dialog? If not, wouldn’t this be a way to attack BlackBerries with Berry411 installed?

Because the requests are proxied through my server I can detect and block abusive behavior. I can also add confirmation dialogs, but I’m only going to do this if it proves necessary.

I’m assume there is an update functionality as well?
Is the unique id the last name, first name?


Leave a comment

(required)

(required)