Go back and watch the part of the movie that talks about the command line
arguments. When you run the program it gets input from the command line to
instantiate the variables. Look at the first line in the main statement:
 public static void main(String[] args) throws ServiceException, IOException
{

    ContactsExampleParameters parameters = new
ContactsExampleParameters(args);





On Sun, Sep 27, 2009 at 11:59 PM, rishi <[email protected]> wrote:

>
>
> thaks for your kind reply..
>
> actually doing java project.. running it as java application.. i've
> tried contacts api using google plugin.. its working.... but i wnt to
> run ContactsExample.java...
>
>
> USAGE:
>  -----------------------------------------------------------
>  Basic command line usage:
>    ContactsExample [<options>] <authenticationInformation> <--
> contactfeed|--groupfeed> --action=<action> [<action options>]
> (default contactfeed)
>  Scripting commands usage:
>    contactsExample [<options>] <authenticationInformation> <--
> contactfeed|--groupfeed>   --script=<script file>  (default
> contactFeed)
>  Print usage (this screen):
>   --help
>  -----------------------------------------------------------
>
>  Options:
>    --base-url=<url to connect to> (default http://www.google.com/m8/feeds/
> )
>    --projection=[thin|full|property-KEY] (default thin)
>    --verbose : dumps communication information
>  Authentication Information (obligatory on command line):
>    --username=<username email> --password=<password>
>  Actions:
>     * list  list all contacts
>     * query  query contacts
>        options:
>             --showdeleted : shows also deleted contacts
>             --updated-min=YYYY-MM-DDTHH:MM:SS : only updated after
> the time specified
>             --orderby=lastmodified : order by last modified
>             --sortorder=[ascending|descending] : sort order
>             --max-results=<n> : return maximum n results
>             --start-index=<n> : return results starting from the
> starting index
>             --querygroupid=<groupid> : return results from the group
>    * add  add new contact
>        options:
>             --name=<name> : contact name
>             --notes=<notes> : notes about the contact
>             --email<n>=<email>,rel:<rel>|label:<label>[,primary:true|
> false]
>             --phone<n>=<phone>,rel:<rel>|label:<label>[,primary:true|
> false]
>             --organization<n>=<organization>,rel:<rel>|label:<label>
> [,title:<title>][,primary:true|false]
>             --im<n>=<im>,rel:<rel>|label:<label>[,protocol:<protocol>]
> [,primary:true|false]
>             --postal<n>=<postal>,rel:<rel>|label:<label>
> [,primary:true|false]
>             --groupid<n>=<groupid>
>             --extendedProperty<n>=<name>,text:<value>|
> file:<XmlFilePath>
>  Notes! <n> is a unique number for the field - several fields
>  of the same type can be present (example: im1, im2, im3).
>  Available rels and protocols can be looked up in the
>  feed documentation.
>    * delete  delete contact
>        options:
>             --id=<contact id>
>    * update  updates contact
>        options:
>             --id=<contact id>
>             --name=<name> : contact name
>             --notes=<notes> : notes about the contact
>             --email<n>=<email>,rel:<rel>|label:<label>[,primary:true|
> false]
>             --phone<n>=<phone>,rel:<rel>|label:<label>[,primary:true|
> false]
>             --organization<n>=<organization>,rel:<rel>|label:<label>
> [,title:<title>][,primary:true|false]
>             --im<n>=<im>,rel:<rel>|label:<label>[,protocol:<protocol>]
> [,primary:true|false]
>             --postal<n>=<postal>,rel:<rel>|label:<label>
> [,primary:true|false]
>             --groupid<n>=<groupid>
>             --extendedProperty<n>=<name>,text:<value>|
> file:<XmlFilePath>
>  Notes! <n> is a unique number for the field - several fields
>  of the same type can be present (example: im1, im2, im3).
>  Available rels and protocols can be looked up in the
>  feed documentation.
>
> this error message im getting..
>
> could you help me..
>
> thanks in advance..
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to