Re: [Delicious-java-discuss] active?
Brought to you by:
czarneckid
From: <del...@li...> - 2006-05-18 22:27:42
|
sweet! thanks very much. that did it. Im retagging all my bookmarks to include date/time info. On 18/05/06, del...@li... < del...@li...> wrote: > > The signature for the addPost method is: > > > public boolean addPost(String url, String description, String > extended, > String tags, Date date, boolean replace, > boolean shared) > > The 5th parameter needs to be a Date object, not a String. Try > p.getTimeAsDate(): > > boolean sent =3D delicious.addPost(p.getHref(), p.getDescription (), > p.getExtended(), p.getTag(), p.getTimeAsDate(),replace,true); > > That should work. Don't know why I didn't spot this before. Maybe it > sneaked past if you weren't using an IDE that could do type checking sinc= e > that should've caught it. > > > On 5/18/06 3:40 PM, "del...@li..." = < > del...@li...> wrote: > > Hi David, > I've downloaded 1.12 and put in sketch's code folder (im using Processing > 115) > My new addPost() looks like this: > > boolean replace =3D true; > boolean sent =3D delicious.addPost(p.getHref(), p.getDescription (), > p.getExtended(), p.getTag(), p.getTime(),replace,true); > > > I'm getting a similar error: > /tmp/build49099.tmp/Temporary_6850_6591.java:102:16:102:120: Semantic > Error: No applicable overload for a method with signature "addPost( > java.lang.String, java.lang.String , java.lang.String, java.lang.String, > java.lang.String, boolean, boolean)" was found in type " > del.icio.us.Delicious". Perhaps you wanted the overloaded version "boolea= n > addPost(java.lang.String $1, java.lang.String $2, java.lang.String $3, > java.lang.String $4, java.util.Date $5, boolean $6, boolean $7);" instead= ? > > btw: I'm using OS X, 10.4.5, java ver 1.4.2_09 > > Are there restrictions on how the strings are formatted? > > thanks, > steve > > > On 17/05/06, *Stephen Boyd* <ss...@gm... <mailto:ss...@gm...= ><ss...@gm...>> wrote: > > Ok. thanks. I'll give it a shot. > > On 17/05/06, del...@li... > <mailto:del...@li...><delicious-jav= a-d...@li...> > > < del...@li... > <mailto:del...@li...><delicious-jav= a-d...@li...>> wrote: > > The addPost method in the latest release (1.12 - just released about 20 > min > > ago) has the following signature: > > > > public boolean addPost(String url, String description, String extended, > > String tags, Date date, boolean replace, > boolean > > shared) > > > > So, you'd need to make a call like: > > > > boolean replace =3D true; > > boolean sent =3D delicious.addPost (p.getHref(), p.getDescription(), > > p.getExtended(), p.getTag(), p.getTime(), replace, true); > > > > > > On 5/17/06 11:04 AM, " > del...@li... > <mailto:del...@li...><delicious-jav= a-d...@li...>" > > > <del...@li...> wrote: > > > > > Semantic Error: No applicable overload for a method with signature > > > > -- > > David Czarnecki > > http://www.blojsom.com/blog/ | http://blojsom.sf.net > |