GET

Get a shortened URL.

URL:

https:// <ServerIP>:<Port> /ccp-webapp/ccp/shorturl/<id>

HTTPS method:

GET

Example XML response payload:

Code Snippet
Copy
<ShortURL>
  <type>chat_invite</type>
  <active>false</active>
  <url>http://theurl.com?param1=val1</url>
  <creator>[userID]</creator>
  <campaignRefURL>https://[ServerIP]:[Port]/ccp-webapp/ccp/campaign/
   [public ID]</campaignRefURL>
  <scRefURL>https://[ServerIP]:[Port]/ccp/socialcontact/
   [SC ID]</scRefURL>
  <createdDate>[timestamp]</createdDate>
  <expireDate>[timestamp]</expireDate>
  <usedDate>[timestamp]</usedDate>
  <shortURL>/ccp/s/[id]</shortURL>
  <refURL>https://[ServerIP]:[Port]/ccp-webapp/ccp/shorturl/[id]</refURL>
</ShortURL>

The "refURL" is a copy of the URL requested.

Elements:

type: the shortURL type.

URL: the URL being shortened.

creator: user that created the short URL.

active: for the chat_invite type, active means that the shortURL was successfully sent with the reply as a chat invitation.

campaignRefURL: the refURL of the campaign for which this short URL was created.

scRefURL: the refURL of the inviting social contact.

createdDate: timestamp on which short URL was created.

expireDate: the expiration date of the shortened URL.

usedDate: the timestamp on which this URL was used. Empty if not used yet.

shortURL: the shortened URL absolute path on the CCP server.

refURL: the URL of this short URL object.

HTTPS response headers:

See HTTPS Responses.