|
|
GET:pages/{pageid}/linksFrom $1目次
Overviewpublic. Retrieve list of inbound or outbound page links Uri Parameters
Query Parameters
Return Codes
Message FormatOutput (when dir=from): <outbound count="{int}">
<page id="{int}" href="{uri}">
<title>{text}</title>
<path>{text}</path>
</page>
...
</outbound>
Output (when dir=to): <inbound count="{int}">
<page id="{int}" href="{uri}">
<title>{text}</title>
<path>{text}</path>
</page>
...
</inbound>
Implementation NotesNone Code SamplesThe following code example retrieves all outbound internal links on the home page: Plug p = Plug.New("http://deki-hayes/@api/deki");
p.At("users", "authenticate").WithCredentials("admin", "password").Get();
p.At("pages", "home", "links").With("dir", "from").Get();
Sample response indicating that there is one outbound link to "Page Title": <outbound count="1">
<page id="31" href="http://deki-hayes/@api/deki/pages/31">
<title>Page Title</title>
<path>Page_Title</path>
</page>
</outbound>
タグ:
|
||||||||||||||||||||||||||||||