Post

1 follower Follow
0
Avatar

How to insert hyperlink in status update through API

Is there a way to create a hyperlink in a status update through the API?

eg. - <a href="https://company.podio.com/operations/item/40751510">New picture of project</a>

Derek Turner Answered

Please sign in to leave a comment.

13 comments

0
Avatar

Status messages use markdown so you can knock yourself out doing formatting that way: http://daringfireball.net/projects/markdown/syntax

Most multiline inputs in Podio supports markdown, with the exception of large text fields which uses HTML (for various boring reasons)

All the best,

Andreas

Andreas Haugstrup Pedersen 0 votes
Comment actions Permalink
0
Avatar

Markdown works great for the web UI, however, does not appear to work in the iPhone mobile app.  Any trick to formatting for both platforms (web & iOS)?

Derek Turner 0 votes
Comment actions Permalink
0
Avatar

We are working on feature parity, but for now the iPhone app will just display the raw markdown

Andreas Haugstrup Pedersen 0 votes
Comment actions Permalink
0
Avatar

How are apps able to create item links in the stream that appear uniform on both platforms?  They appear as html hyperlinks in the web UI and work as direct links on iOS.

Derek Turner 0 votes
Comment actions Permalink
0
Avatar

As I mentioned in my first reply: Large text fields in apps don't use markdown and are handled separately in both web and iOS.

Andreas Haugstrup Pedersen 0 votes
Comment actions Permalink
0
Avatar

I understand the formatting for large text fields in the item itself.  I am just concerned about the formatting of the stream entries.  Maybe the attachment will be of more help.

Derek Turner 0 votes
Comment actions Permalink
0
Avatar

I guess a more simple question would be how is the item linking from the stream coded so that it works on iOS as well?

Derek Turner 0 votes
Comment actions Permalink
0
Avatar

I must admit I'm now quite confused as to what it is you're trying to accomplish :(

Andreas Haugstrup Pedersen 0 votes
Comment actions Permalink
0
Avatar

I am creating status updates via the API.  There are times when I want to link from the status update to an item in Podio.

This works well for the web UI.  [This link](http://example.net/) has no title attribute.

However, it breaks in iOS and shows the raw html as you noted.

How can I format the status update so that it hyperlinks to the item on iOS as well?

Derek Turner 0 votes
Comment actions Permalink
0
Avatar

Ah, that's just not what your screenshot shows. :)

The third item in your screenshot is not a status message. It's a regular app item created using either the API using App Authentication or via a webform. In those cases the item will not have an author and will appear to have been created by the app itself.

If that's your purpose with authenticate using App Auth and create items as normal.

If you want to create a status message with a nicely formatted link you should use an embed. You first have to create an embed https://developers.podio.com/doc/embeds/add-an-embed-726483 and then you can use the embed_id when creating your status message https://developers.podio.com/doc/status/add-new-status-message-22336

Does that help?

/Andreas

Andreas Haugstrup Pedersen 0 votes
Comment actions Permalink
0
Avatar

I understand that the stream update was created by the App when the item was created.  I was just inquiring as to how the stream update was formatted to allow linking to the actual item and have a nice format.  I will look at the embed option.  Just seems like a lot of work to create a nicely formatted hyperlink.

Thanks

-Derek

Derek Turner 0 votes
Comment actions Permalink
0
Avatar

In the first case (creating an item via app auth) everything happens automatically. The stream entry is created automatically and you don't have to do anything other than create the item in question. Embeds are only needed when you are creating status updates.

Andreas Haugstrup Pedersen 0 votes
Comment actions Permalink