Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

Passing the sourceURL via API

source sourceurl api php

  • Please log in to reply
2 replies to this topic

#1 DotDot

DotDot

  • Pip
  • Title: Member
  • Group: Members
  • 2 posts

Posted 04 December 2012 - 10:04 PM

I'm working on creating notes via the cloud API using php.

It's going really well and notes are being created as planned, however the "Source URL" is not being included when the note is created.

Is it possible to add the sourceURL as an attribute of my $note object?

I tried something as simply as $note->sourceURL = "http://blah.com" but doesn't seem to work.

Any help would be much appreciated!! Thanks! :D

#2 Kentaro

Kentaro

  • Title: Browncoat
  • Group: Evernote Employee
  • 265 posts

Posted 04 December 2012 - 10:24 PM

sourceURL is a field of NoteAttributes.
http://dev.evernote...._NoteAttributes

You can create it first, set the value to it, then add it to the note's attributes field.
http://dev.evernote....tml#Struct_Note

#3 DotDot

DotDot

  • Pip
  • Title: Member
  • Group: Members
  • 2 posts

Posted 04 December 2012 - 11:06 PM

Great! Thanks a ton Kentaro... I knew it was something as simple as that...

I was skipping the whole 'noteattributes' part and just assigning it to the note itself

Thanks again!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote