]> git.mxchange.org Git - friendica.git/blob - doc/API-Entities.md
6c3e94a39b627df649d58133dc30aac75178b5d2
[friendica.git] / doc / API-Entities.md
1 # Friendica API entities
2
3 * [Home](help)
4   * [Using the APIs](help/api)
5
6
7 ## Activities
8
9 <table class="table table-condensed table-striped table-bordered">
10 <thead>
11 <tr>
12 <th>Attribute</th>
13 <th>Type</th>
14 <th align="center">Nullable</th>
15 </tr>
16 </thead>
17 <tbody>
18
19 <tr>
20 <td><code>like</code></td>
21 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
22 <td align="center">No</td>
23 </tr>
24
25 <tr>
26 <td><code>dislike</code></td>
27 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
28 <td align="center">No</td>
29 </tr>
30
31 <tr>
32 <td><code>attendyes</code></td>
33 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
34 <td align="center">No</td>
35 </tr>
36
37 <tr>
38 <td><code>attendno</code></td>
39 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
40 <td align="center">No</td>
41 </tr>
42
43 <tr>
44 <td><code>attendmaybe</code></td>
45 <td>List of <a href="help/API-Entities#Contact">Contacts</a></td>
46 <td align="center">No</td>
47 </tr>
48
49 </tbody>
50 </table>
51
52 ## Attachment
53
54 <table class="table table-condensed table-striped table-bordered">
55 <thead>
56 <tr>
57 <th>Attribute</th>
58 <th>Type</th>
59 <th align="center">Nullable</th>
60 </tr>
61 </thead>
62 <tbody>
63
64 <tr>
65 <td><code>url</code></td>
66 <td>String (URL)</td>
67 <td align="center">No</td>
68 </tr>
69
70 <tr>
71 <td><code>mimetype</code></td>
72 <td>String</td>
73 <td align="center">No</td>
74 </tr>
75
76 <tr>
77 <td><code>size</code></td>
78 <td>Integer (bytes)</td>
79 <td align="center">No</td>
80 </tr>
81
82 </tbody>
83 </table>
84
85 ## Contact
86
87 <table class="table table-condensed table-striped table-bordered">
88 <thead>
89 <tr>
90 <th>Attribute</th>
91 <th>Type</th>
92 <th align="center">Nullable</th>
93 </tr>
94 </thead>
95
96 <tbody>
97 <tr>
98 <td><code>id</code></td>
99 <td>Integer</td>
100 <td align="center">No</td>
101 </tr>
102
103 <tr>
104 <td><code>id_str</code></td>
105 <td>String</td>
106 <td align="center">No</td>
107 </tr>
108
109 <tr>
110 <td><code>name</code></td>
111 <td>String</td>
112 <td align="center">No</td>
113 </tr>
114
115 <tr>
116 <td><code>screen_name</code></td>
117 <td>String</td>
118 <td align="center">No</td>
119 </tr>
120
121 <tr>
122 <td><code>location</code></td>
123 <td>String</td>
124 <td align="center">No</td>
125 </tr>
126
127 <tr>
128 <td><code>description</code></td>
129 <td>String</td>
130 <td align="center">No</td>
131 </tr>
132
133 <tr>
134 <td><code>profile_image_url</code></td>
135 <td>String (URL)</td>
136 <td align="center">No</td>
137 </tr>
138
139 <tr>
140 <td><code>profile_image_url_https</code></td>
141 <td>String (URL)</td>
142 <td align="center">No</td>
143 </tr>
144
145 <tr>
146 <td><code>profile_image_url_profile_size</code></td>
147 <td>String (URL)</td>
148 <td align="center">No</td>
149 </tr>
150
151 <tr>
152 <td><code>profile_image_url_large</code></td>
153 <td>String (URL)</td>
154 <td align="center">No</td>
155 </tr>
156
157 <tr>
158 <td><code>url</code></td>
159 <td>String (URL)</td>
160 <td align="center">No</td>
161 </tr>
162
163 <tr>
164 <td><code>protected</code></td>
165 <td>Boolean</td>
166 <td align="center">No</td>
167 </tr>
168
169 <tr>
170 <td><code>followers_count</code></td>
171 <td>Integer</td>
172 <td align="center">No</td>
173 </tr>
174
175 <tr>
176 <td><code>friends_count</code></td>
177 <td>Integer</td>
178 <td align="center">No</td>
179 </tr>
180
181 <tr>
182 <td><code>listed_count</code></td>
183 <td>Integer</td>
184 <td align="center">No</td>
185 </tr>
186
187 <tr>
188 <td><code>favourites_count</code></td>
189 <td>Integer</td>
190 <td align="center">No</td>
191 </tr>
192
193 <tr>
194 <td><code>statuses_count</code></td>
195 <td>Integer</td>
196 <td align="center">No</td>
197 </tr>
198
199 <tr>
200 <td><code>created_at</code></td>
201 <td>String (Date)<br/>
202 Ex: Wed May 23 06:01:13 +0000 2007
203 </td>
204 <td align="center">No</td>
205 </tr>
206
207 <tr>
208 <td><code>utc_offset</code></td>
209 <td>Integer</td>
210 <td align="center">No</td>
211 </tr>
212
213 <tr>
214 <td><code>time_zone</code></td>
215 <td>String</td>
216 <td align="center">No</td>
217 </tr>
218
219 <tr>
220 <td><code>geo_enabled</code></td>
221 <td>Boolean</td>
222 <td align="center">No</td>
223 </tr>
224
225 <tr>
226 <td><code>verified</code></td>
227 <td>Boolean</td>
228 <td align="center">No</td>
229 </tr>
230
231 <tr>
232 <td><code>lang</code></td>
233 <td>String</td>
234 <td align="center">No</td>
235 </tr>
236
237 <tr>
238 <td><code>contributors_enabled</code></td>
239 <td>Boolean</td>
240 <td align="center">No</td>
241 </tr>
242
243 <tr>
244 <td><code>is_translator</code></td>
245 <td>Boolean</td>
246 <td align="center">No</td>
247 </tr>
248
249 <tr>
250 <td><code>is_translation_enabled</code></td>
251 <td>Boolean</td>
252 <td align="center">No</td>
253 </tr>
254
255 <tr>
256 <td><code>following</code></td>
257 <td>Boolean</td>
258 <td align="center">No</td>
259 </tr>
260
261 <tr>
262 <td><code>follow_request_sent</code></td>
263 <td>Boolean</td>
264 <td align="center">No</td>
265 </tr>
266
267 <tr>
268 <td><code>statusnet_blocking</code></td>
269 <td>Boolean</td>
270 <td align="center">No</td>
271 </tr>
272
273 <tr>
274 <td><code>notifications</code></td>
275 <td>Boolean</td>
276 <td align="center">No</td>
277 </tr>
278
279 <tr>
280 <td><code>statusnet_profile_url</code></td>
281 <td>String (URL)</td>
282 <td align="center">No</td>
283 </tr>
284
285 <tr>
286 <td><code>uid</code></td>
287 <td>Integer</td>
288 <td align="center">No</td>
289 </tr>
290
291 <tr>
292 <td><code>cid</code></td>
293 <td>Integer</td>
294 <td align="center">No</td>
295 </tr>
296
297 <tr>
298 <td><code>pid</code></td>
299 <td>Integer</td>
300 <td align="center">No</td>
301 </tr>
302
303 <tr>
304 <td><code>self</code></td>
305 <td>Integer</td>
306 <td align="center">No</td>
307 </tr>
308
309 <tr>
310 <td><code>network</code></td>
311 <td>String</td>
312 <td align="center">No</td>
313 </tr>
314
315 </tbody>
316 </table>
317
318
319 ## Entities
320
321 <table class="table table-condensed table-striped table-bordered">
322 <thead>
323 <tr>
324 <th>Attribute</th>
325 <th>Type</th>
326 <th align="center">Nullable</th>
327 </tr>
328 </thead>
329 <tbody>
330
331 <tr>
332 <td><code>hashtags</code></td>
333 <td>List of <a href="help/API-Entities#Hashtag">Hashtags</a></td>
334 <td align="center">No</td>
335 </tr>
336
337 <tr>
338 <td><code>symbols</code></td>
339 <td>List of <a href="help/API-Entities#Symbol">Symbols</a></td>
340 <td align="center">No</td>
341 </tr>
342
343 <tr>
344 <td><code>urls</code></td>
345 <td>List of <a href="help/API-Entities#URL">URLs</a></td>
346 <td align="center">No</td>
347 </tr>
348
349 <tr>
350 <td><code>user_mentions</code></td>
351 <td>List of <a href="help/API-Entities#User+Mention">User mentions</a></td>
352 <td align="center">No</td>
353 </tr>
354
355 <tr>
356 <td><code>media</code></td>
357 <td>List of <a href="help/API-Entities#Media">Medias</a></td>
358 <td align="center">No</td>
359 </tr>
360
361 </tbody>
362 </table>
363
364 ## Event
365
366 <table class="table table-condensed table-striped table-bordered">
367 <thead>
368 <tr>
369 <th>Attribute</th>
370 <th>Type</th>
371 <th>Description</th>
372 </tr>
373 </thead>
374
375 <tbody>
376 <tr>
377 <td><code>id</code></td>
378 <td>Integer</td>
379 <td></td>
380 </tr>
381
382 <tr>
383 <td><code>uid</code></td>
384 <td>Integer</td>
385 <td>Owner User Id</td>
386 </tr>
387
388 <tr>
389 <td><code>cid</code></td>
390 <td>Integer</td>
391 <td>Target Contact Id</td>
392 </tr>
393
394 <tr>
395 <td><code>uri</code></td>
396 <td>String</td>
397 <td>Item unique URI string</td>
398 </tr>
399
400 <tr>
401 <td><code>name</code></td>
402 <td>String (Plaintext)</td>
403 <td>Title</td>
404 </tr>
405
406 <tr>
407 <td><code>desc</code></td>
408 <td>String (HTML)</td>
409 <td>Description</td>
410 </tr>
411
412 <tr>
413 <td><code>start_time</code></td>
414 <td>String (UTC <code>YYYY-MM-DD HH:II:SS)</code>)</td>
415 <td></td>
416 </tr>
417
418 <tr>
419 <td><code>end_time</code></td>
420 <td>String (UTC <code>YYYY-MM-DD HH:II:SS)</code>)</td>
421 <td>Optional (null date is <code>0001-01-01 00:00:00</code></td>
422 </tr>
423
424 <tr>
425 <td><code>type</code></td>
426 <td>String (<code>event</code> or <code>birthday</code>)</td>
427 <td></td>
428 </tr>
429
430 <tr>
431 <td><code>nofinish</code></td>
432 <td>Boolean</td>
433 <td>Ongoing event</td>
434 </tr>
435
436 <tr>
437 <td><code>place</code></td>
438 <td>String</td>
439 <td>Optional. Location.</td>
440 </tr>
441
442 <tr>
443 <td><code>ignore</code></td>
444 <td>Boolean</td>
445 <td>???</td>
446 </tr>
447
448 <tr>
449 <td><code>allow_cid</code></td>
450 <td>String (angle-brackets escaped integers)</td>
451 <td>Optional. List of allowed contact ids</td>
452 </tr>
453
454 <tr>
455 <td><code>allow_gid</code></td>
456 <td>String (angle-brackets escaped integers)</td>
457 <td>Optional. List of allowed group ids</td>
458 </tr>
459
460 <tr>
461 <td><code>deny_cid</code></td>
462 <td>String (angle-brackets escaped integers)</td>
463 <td>Optional. List of disallowed contact ids</td>
464 </tr>
465
466 <tr>
467 <td><code>deny_gid</code></td>
468 <td>String (angle-brackets escaped integers)</td>
469 <td>Optional. List of disallowed group ids</td>
470 </tr>
471
472 </tbody>
473 </table>
474
475 ## Hashtag
476
477 Unused
478
479 ## Item
480
481 <table class="table table-condensed table-striped table-bordered">
482 <thead>
483 <tr>
484 <th>Attribute</th>
485 <th>Type</th>
486 <th align="center">Nullable</th>
487 </tr>
488 </thead>
489
490 <tbody>
491 <tr>
492 <td><code>text</code></td>
493 <td>String (Plaintext)</td>
494 <td align="center">No</td>
495 </tr>
496
497 <tr>
498 <td><code>truncated</code></td>
499 <td>Boolean</td>
500 <td align="center">No</td>
501 </tr>
502
503 <tr>
504 <td><code>created_at</code></td>
505 <td>String (Date)<br/>
506 Ex: Wed May 23 06:01:13 +0000 2007
507 </td>
508 <td align="center">No</td>
509 </tr>
510
511 <tr>
512 <td><code>in_reply_to_status_id</code></td>
513 <td>Integer</td>
514 <td align="center">No</td>
515 </tr>
516
517 <tr>
518 <td><code>in_reply_to_status_id_str</code></td>
519 <td>String</td>
520 <td align="center">No</td>
521 </tr>
522
523 <tr>
524 <td><code>source</code></td>
525 <td>String</td>
526 <td align="center">No</td>
527 </tr>
528
529 <tr>
530 <td><code>id</code></td>
531 <td>Integer</td>
532 <td align="center">No</td>
533 </tr>
534
535 <tr>
536 <td><code>id_str</code></td>
537 <td>String</td>
538 <td align="center">No</td>
539 </tr>
540
541 <tr>
542 <td><code>in_reply_to_user_id</code></td>
543 <td>Integer</td>
544 <td align="center">No</td>
545 </tr>
546
547 <tr>
548 <td><code>in_reply_to_user_id_str</code></td>
549 <td>String</td>
550 <td align="center">No</td>
551 </tr>
552
553 <tr>
554 <td><code>in_reply_to_screen_name</code></td>
555 <td>String</td>
556 <td align="center">No</td>
557 </tr>
558
559 <tr>
560 <td><code>geo</code></td>
561 <td>String</td>
562 <td align="center">Yes</td>
563 </tr>
564
565 <tr>
566 <td><code>favorited</code></td>
567 <td>Boolean</td>
568 <td align="center">No</td>
569 </tr>
570
571 <tr>
572 <td><code>user</code></td>
573 <td><a href="help/API-Entities#Contact">Contact</a></td>
574 <td align="center">No</td>
575 </tr>
576
577 <tr>
578 <td><code>friendica_author</code></td>
579 <td><a href="help/API-Entities#Contact">Contact</a></td>
580 <td align="center">No</td>
581 </tr>
582
583 <tr>
584 <td><code>friendica_owner</code></td>
585 <td>
586  
587 <a href="help/API-Entities#Contact">Contact</a></td>
588 <td align="center">No</td>
589 </tr>
590
591 <tr>
592 <td><code>friendica_private</code></td>
593 <td>Boolean</td>
594 <td align="center">No</td>
595 </tr>
596
597 <tr>
598 <td><code>statusnet_html</code></td>
599 <td>String (HTML)</td>
600 <td align="center">No</td>
601 </tr>
602
603 <tr>
604 <td><code>statusnet_conversation_id</code></td>
605 <td>Integer</td>
606 <td align="center">No</td>
607 </tr>
608
609 <tr>
610 <td><code>external_url</code></td>
611 <td>String (URL)</td>
612 <td align="center">No</td>
613 </tr>
614
615 <tr>
616 <td><code>friendica_activities</code></td>
617 <td><a href="help/API-Entities#Activities">Activities</a></td>
618 <td align="center">No</td>
619 </tr>
620
621 <tr>
622 <td><code>friendica_title</code></td>
623 <td>String (Plaintext)</td>
624 <td align="center">No</td>
625 </tr>
626
627 <tr>
628 <td><code>friendica_html</code></td>
629 <td>String (HTML)</td>
630 <td align="center">No</td>
631 </tr>
632
633 <tr>
634 <td><code>attachments</code></td>
635 <td>List of <a href="help/API-Entities#Attachment">Attachments</a></td>
636 <td align="center">Yes</td>
637 </tr>
638
639 <tr>
640 <td><code>entities</code></td>
641 <td><a href="help/API-Entities#Entities">Entities</a></td>
642 <td align="center">Yes</td>
643 </tr>
644
645 </tbody>
646 </table>
647
648 ## Media
649
650 Identical to [the Twitter Media Object](https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/entities-object#media).
651
652 <table class="table table-condensed table-striped table-bordered">
653 <thead>
654 <tr>
655 <th>Attribute</th>
656 <th>Type</th>
657 <th align="center">Nullable</th>
658 </tr>
659 </thead>
660 <tbody>
661
662 <tr>
663 <td><code>id</code></td>
664 <td>Integer</td>
665 <td align="center">No</td>
666 </tr>
667
668 <tr>
669 <td><code>id_str</code></td>
670 <td>String</td>
671 <td align="center">No</td>
672 </tr>
673
674 <tr>
675 <td><code>indices</code></td>
676 <td>List of Integer</td>
677 <td align="center">No</td>
678 </tr>
679
680 <tr>
681 <td><code>media_url</code></td>
682 <td>String (URL)</td>
683 <td align="center">No</td>
684 </tr>
685
686 <tr>
687 <td><code>media_url_https</code></td>
688 <td>String (URL)</td>
689 <td align="center">No</td>
690 </tr>
691
692 <tr>
693 <td><code>url</code></td>
694 <td>String (URL)</td>
695 <td align="center">No</td>
696 </tr>
697
698 <tr>
699 <td><code>display_url</code></td>
700 <td>String (URL)</td>
701 <td align="center">No</td>
702 </tr>
703
704 <tr>
705 <td><code>expanded_url</code></td>
706 <td>String (URL)</td>
707 <td align="center">No</td>
708 </tr>
709
710 <tr>
711 <td><code>ext_alt_text</code></td>
712 <td>String</td>
713 <td align="center">No</td>
714 </tr>
715
716 <tr>
717 <td><code>type</code></td>
718 <td>String</td>
719 <td align="center">No</td>
720 </tr>
721
722 <tr>
723 <td><code>sizes</code></td>
724 <td><a href="help/API-Entities#Sizes">Sizes</a></td>
725 <td align="center">No</td>
726 </tr>
727
728 </tbody>
729 </table>
730
731 ## Notification
732
733 <table class="table table-condensed table-striped table-bordered">
734 <thead>
735 <tr>
736 <th>Attribute</th>
737 <th>Type</th>
738 <th>Description</th>
739 </tr>
740 </thead>
741 <tbody>
742
743 <tr>
744 <td><code>id</code></td>
745 <td>Integer</td>
746 <td></td>
747 </tr>
748
749 <tr>
750 <td><code>hash</code></td>
751 <td>String</td>
752 <td></td>
753 </tr>
754
755 <tr>
756 <td><code>type</code></td>
757 <td>Integer</td>
758 <td><ul>
759 <li>1: Inbound follow request</li>
760 <li>2: Outbound follow request confirmation</li>
761 <li>4: Wall-to-wall post</li>
762 <li>8: Reply</li>
763 <li>16: Private message</li>
764 <li>32: Friend suggestion</li>
765 <li>64: Unused</li>
766 <li>128: Mention</li>
767 <li>256: Tag added to a post</li>
768 <li>512: Poke (Obsolete)</li>
769 <li>1024: New post</li>
770 <li>16384: System email</li>
771 <li>32768: System event</li>
772 </ul></td>
773 </tr>
774
775 <tr>
776 <td><code>name</code></td>
777 <td>String</td>
778 <td>Full name of the contact subject</td>
779 </tr>
780
781 <tr>
782 <td><code>url</code></td>
783 <td>String (URL)</td>
784 <td>Profile page URL of the contact subject</td>
785 </tr>
786
787 <tr>
788 <td><code>photo</code></td>
789 <td>String (URL)</td>
790 <td>Profile photo URL of the contact subject</td>
791 </tr>
792
793 <tr>
794 <td><code>date</code></td>
795 <td>String (Date)</td>
796 <td><code>YYYY-MM-DD hh:mm:ss</code> local server time</td>
797 </tr>
798
799 <tr>
800 <td><code>msg</code></td>
801 <td>String (BBCode)</td>
802 <td></td>
803 </tr>
804
805 <tr>
806 <td><code>uid</code></td>
807 <td>Integer</td>
808 <td>Owner User Id</td>
809 </tr>
810
811 <tr>
812 <td><code>link</code></td>
813 <td>String (URL)</td>
814 <td>Notification URL</td>
815 </tr>
816
817 <tr>
818 <td><code>iid</code></td>
819 <td>Integer</td>
820 <td>Item Id</td>
821 </tr>
822
823 <tr>
824 <td><code>parent</code></td>
825 <td>Integer</td>
826 <td>Parent Item Id</td>
827 </tr>
828
829 <tr>
830 <td><code>seen</code></td>
831 <td>Integer (Boolean)</td>
832 <td>Whether the notification was read or not.</td>
833 </tr>
834
835 <tr>
836 <td><code>verb</code></td>
837 <td>String (URL)</td>
838 <td>[Activity Streams](http://activitystrea.ms) Verb URL</td>
839 </tr>
840
841 <tr>
842 <td><code>seen</code></td>
843 <td>Integer (Boolean)</td>
844 <td>Whether the notification was read or not.</td>
845 </tr>
846
847 <tr>
848 <td><code>otype</code></td>
849 <td>Enum</td>
850 <td>Subject type (`item`, `intro` or `mail`)</td>
851 </tr>
852
853 <tr>
854 <td><code>name_cache</code></td>
855 <td>String (HTML)</td>
856 <td>Full name of the contact subject</td>
857 </tr>
858
859 <tr>
860 <td><code>msg_cache</code></td>
861 <td>String (Plaintext)</td>
862 <td>Plaintext version of the notification text with a placeholder (`{0}`) for the subject contact's name.</td>
863 </tr>
864
865 <tr>
866 <td><code>timestamp</code></td>
867 <td>Integer</td>
868 <td>Unix timestamp</td>
869 </tr>
870
871 <tr>
872 <td><code>date_rel</code></td>
873 <td>String</td>
874 <td>Time since the note was posted, eg "1 hour ago"</td>
875 </tr>
876
877
878 <tr>
879 <td><code>msg_html</code></td>
880 <td>String (HTML)</td>
881 <td></td>
882 </tr>
883
884 <tr>
885 <td><code>msg_plain</code></td>
886 <td>String (Plaintext)</td>
887 <td></td>
888 </tr>
889
890 </tbody>
891 </table>
892
893 ## Photo
894
895 <table class="table table-condensed table-striped table-bordered">
896 <thead>
897 <tr>
898 <th>Attribute</th>
899 <th>Type</th>
900 <th>Description</th>
901 </tr>
902 </thead>
903 <tbody>
904
905 <tr>
906 <td><code>id</code></td>
907 <td>String</td>
908 <td>Resource ID (32 hex chars)</td>
909 </tr>
910
911 <tr>
912 <td><code>media-id</code></td>
913 <td>String (Integer) </td>
914 <td>ID used for attaching to a Mastodon Post Status</td>
915 </tr>
916
917
918 <tr>
919 <td><code>created</code></td>
920 <td>String (Date)</td>
921 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
922 </tr>
923
924 <tr>
925 <td><code>edited</code></td>
926 <td>String (Date)</td>
927 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
928 </tr>
929
930 <tr>
931 <td><code>title</code></td>
932 <td>String</td>
933 <td></td>
934 </tr>
935
936 <tr>
937 <td><code>desc</code></td>
938 <td>String (Plaintext)</td>
939 <td>Picture caption</td>
940 </tr>
941
942 <tr>
943 <td><code>album</code></td>
944 <td>String</td>
945 <td>Album name</td>
946 </tr>
947
948 <tr>
949 <td><code>filename</code></td>
950 <td>String</td>
951 <td>Original image filename</td>
952 </tr>
953
954 <tr>
955 <td><code>type</code></td>
956 <td>String</td>
957 <td>MIME Type</td>
958 </tr>
959
960 <tr>
961 <td><code>height</code></td>
962 <td>Integer</td>
963 <td>Image height in pixels</td>
964 </tr>
965
966 <tr>
967 <td><code>width</code></td>
968 <td>Integer</td>
969 <td>Image width in pixels</td>
970 </tr>
971
972 <tr>
973 <td><code>profile</code></td>
974 <td>Integer</td>
975 <td>1 if it is a profile photo</td>
976 </tr>
977
978 <tr>
979 <td><code>allow_cid</code></td>
980 <td>String (ACL)</td>
981 <td>List of contact ids wrapped in angle brackets allowed to access the photo.</td>
982 </tr>
983
984 <tr>
985 <td><code>allow_gid</code></td>
986 <td>String (ACL)</td>
987 <td>List of contact group ids wrapped in angle brackets allowed to access the photo.</td>
988 </tr>
989
990 <tr>
991 <td><code>deny_cid</code></td>
992 <td>String (ACL)</td>
993 <td>List of contact ids wrapped in angle brackets forbidden to access the photo.</td>
994 </tr>
995
996 <tr>
997 <td><code>deny_gid</code></td>
998 <td>String (ACL)</td>
999 <td>List of contact group ids wrapped in angle brackets forbidden to access the photo.</td>
1000 </tr>
1001
1002 <tr>
1003 <td><code>link</code></td>
1004 <td>Array of Strings (URL)</td>
1005 <td>
1006 URLs to the different scales indexed by scale number if no specific scale was requested.
1007 Mutually exclusive with <code>data</code> <code>datasize</code>.
1008 </td>
1009 </tr>
1010
1011 <tr>
1012 <td><code>scales</code></td>
1013 <td>Array of Photo Scales</td>
1014 <td>
1015 List of Scale objects listing the id, scale, link, etc. of each scale
1016 </td>
1017 </tr>
1018
1019 <tr>
1020 <td><code>datasize</code></td>
1021 <td>Integer</td>
1022 <td>
1023 Picture size in bytes if a single scale was requested.
1024 Mutually exclusive with <code>link</code>.
1025 </td>
1026 </tr>
1027
1028 <tr>
1029 <td><code>data</code></td>
1030 <td>String</td>
1031 <td>
1032 Base64-encoded image data if a single scale was requested.
1033 Mutually exclusive with <code>link</code>.
1034 </td>
1035 </tr>
1036
1037 <tr>
1038 <td><code>friendica_activities</code></td>
1039 <td><a href="help/API-Entities#Activities">Activities</a></td>
1040 <td></td>
1041 </tr>
1042
1043 <tr>
1044 <td><code>friendica_comments</code></td>
1045 <td>List of <a href="help/API-Entities#Item">Items</a></td>
1046 <td></td>
1047 </tr>
1048
1049 <tr>
1050 <td><code>rights_mismatch</code></td>
1051 <td>Boolean</td>
1052 <td>True if the ACL differs between the picture and the associated item.</td>
1053 </tr>
1054
1055 </tbody>
1056 </table>
1057
1058 ## Photo Scale
1059
1060 <table class="table table-condensed table-striped table-bordered">
1061 <thead>
1062 <tr>
1063 <th>Attribute</th>
1064 <th>Type</th>
1065 <th align="center">Nullable</th>
1066 </tr>
1067 </thead>
1068 <tbody>
1069
1070 <tr>
1071 <td><code>id</code></td>
1072 <td>String (Integer)</td>
1073 <td>Row ID of this photo scale</td>
1074 </tr>
1075
1076 <tr>
1077 <td><code>scale</code></td>
1078 <td>Integer</td>
1079 <td>Scale number</td>
1080 </tr>
1081
1082 <tr>
1083 <td><code>link</code></td>
1084 <td>String (URL)</td>
1085 <td>URL to this scale's image</td>
1086 </tr>
1087
1088 <tr>
1089 <td><code>height</code></td>
1090 <td>Integer</td>
1091 <td>Image height in pixels</td>
1092 </tr>
1093
1094 <tr>
1095 <td><code>width</code></td>
1096 <td>Integer</td>
1097 <td>Image width in pixels</td>
1098 </tr>
1099
1100 <tr>
1101 <td><code>size</code></td>
1102 <td>Integer</td>
1103 <td>Image size in bytes</td>
1104 </tr>
1105
1106 </tbody>
1107 </table>
1108
1109
1110 ## Photo List Item
1111
1112 <table class="table table-condensed table-striped table-bordered">
1113 <thead>
1114 <tr>
1115 <th>Attribute</th>
1116 <th>Type</th>
1117 <th>Description</th>
1118 </tr>
1119 </thead>
1120 <tbody>
1121
1122 <tr>
1123 <td><code>id</code></td>
1124 <td>String</td>
1125 <td>Resource ID (32 hex chars)</td>
1126 </tr>
1127
1128 <tr>
1129 <td><code>album</code></td>
1130 <td>String</td>
1131 <td>Album name</td>
1132 </tr>
1133
1134 <tr>
1135 <td><code>filename</code></td>
1136 <td>String</td>
1137 <td>Original image filename</td>
1138 </tr>
1139
1140 <tr>
1141 <td><code>type</code></td>
1142 <td>String</td>
1143 <td>MIME Type</td>
1144 </tr>
1145
1146 <tr>
1147 <td><code>created</code></td>
1148 <td>String (Date)</td>
1149 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
1150 </tr>
1151
1152 <tr>
1153 <td><code>edited</code></td>
1154 <td>String (Date)</td>
1155 <td>Format <code>YYYY-MM-DD HH:MM:SS</code></td>
1156 </tr>
1157
1158 <tr>
1159 <td><code>desc</code></td>
1160 <td>String (Plaintext)</td>
1161 <td>Picture caption</td>
1162 </tr>
1163
1164 <tr>
1165 <td><code>thumb</code></td>
1166 <td>String (URL)</td>
1167 <td>URL of the smallest scale version of the picture.</td>
1168 </tr>
1169
1170 </tbody>
1171 </table>
1172
1173 ## Private message
1174
1175 <table class="table table-condensed table-striped table-bordered">
1176 <thead>
1177 <tr>
1178 <th>Attribute</th>
1179 <th>Type</th>
1180 <th>Description</th>
1181 </tr>
1182 </thead>
1183 <tbody>
1184
1185 <tr>
1186 <td><code>id</code></td>
1187 <td>Integer</td>
1188 <td></td>
1189 </tr>
1190
1191 <tr>
1192 <td><code>sender_id</code></td>
1193 <td>Integer</td>
1194 <td>Sender Contact Id</td>
1195 </tr>
1196
1197 <tr>
1198 <td><code>text</code></td>
1199 <td>String</td>
1200 <td>Can be HTML or plaintext depending on the API call parameter `getText`.</td>
1201 </tr>
1202
1203 <tr>
1204 <td><code>recipient_id</code></td>
1205 <td>Integer</td>
1206 <td>Recipient Contact Id</td>
1207 </tr>
1208
1209 <tr>
1210 <td><code>created_at</code></td>
1211 <td>String (Date)</td>
1212 <td>Ex: Wed May 23 06:01:13 +0000 2007</td>
1213 </tr>
1214
1215 <tr>
1216 <td><code>sender_screen_name</code></td>
1217 <td>String</td>
1218 <td></td>
1219 </tr>
1220
1221 <tr>
1222 <td><code>recipient_screen_name</code></td>
1223 <td>String</td>
1224 <td></td>
1225 </tr>
1226
1227 <tr>
1228 <td><code>sender</code></td>
1229 <td><a href="help/API-Entities#Contact">Contact</a></td>
1230 <td></td>
1231 </tr>
1232
1233 <tr>
1234 <td><code>recipient</code></td>
1235 <td><a href="help/API-Entities#Contact">Contact</a></td>
1236 <td></td>
1237 </tr>
1238
1239 <tr>
1240 <td><code>title</code></td>
1241 <td>String</td>
1242 <td>Empty if the API call parameter `getText` is empty or absent.</td>
1243 </tr>
1244
1245 <tr>
1246 <td><code>friendica_seen</code></td>
1247 <td>Integer (Boolean)</td>
1248 <td>Whether the private message has been read or not.</td>
1249 </tr>
1250
1251 <tr>
1252 <td><code>friendica_parent_uri</code></td>
1253 <td>String</td>
1254 <td></td>
1255 </tr>
1256
1257 </tbody>
1258 </table>
1259
1260 ## Profile
1261
1262 <table class="table table-condensed table-striped table-bordered">
1263 <thead>
1264 <tr>
1265 <th>Attribute</th>
1266 <th>Type</th>
1267 <th>Description</th>
1268 </tr>
1269 </thead>
1270 <tbody>
1271
1272 <tr>
1273 <td><code>profile_id</code></td>
1274 <td>Integer</td>
1275 <td></td>
1276 </tr>
1277
1278 <tr>
1279 <td><code>profile_name</code></td>
1280 <td>String</td>
1281 <td></td>
1282 </tr>
1283
1284 <tr>
1285 <td><code>is_default</code></td>
1286 <td>Boolean</td>
1287 <td></td>
1288 </tr>
1289
1290 <tr>
1291 <td><code>hide_friends</code></td>
1292 <td>Boolean</td>
1293 <td>Whether the user chose to hide their contact list on their profile.</td>
1294 </tr>
1295
1296 <tr>
1297 <td><code>profile_photo</code></td>
1298 <td>String (URL)</td>
1299 <td>Largest size profile picture URL.</td>
1300 </tr>
1301
1302 <tr>
1303 <td><code>profile_thumb</code></td>
1304 <td>String (URL)</td>
1305 <td>Smallest size profile picture URL.</td>
1306 </tr>
1307
1308 <tr>
1309 <td><code>publish</code></td>
1310 <td>Boolean</td>
1311 <td>Whether the user chose to publish their profile in the local directory.</td>
1312 </tr>
1313
1314 <tr>
1315 <td><code>net_publish</code></td>
1316 <td>Boolean</td>
1317 <td>Whether the user chose to publish their profile in the global directory.</td>
1318 </tr>
1319
1320 <tr>
1321 <td><code>description</code></td>
1322 <td>String</td>
1323 <td></td>
1324 </tr>
1325
1326 <tr>
1327 <td><code>date_of_birth</code></td>
1328 <td>String</td>
1329 <td></td>
1330 </tr>
1331
1332 <tr>
1333 <td><code>address</code></td>
1334 <td>String</td>
1335 <td></td>
1336 </tr>
1337
1338 <tr>
1339 <td><code>city</code></td>
1340 <td>String</td>
1341 <td></td>
1342 </tr>
1343
1344 <tr>
1345 <td><code>region</code></td>
1346 <td>String</td>
1347 <td></td>
1348 </tr>
1349
1350 <tr>
1351 <td><code>postal_code</code></td>
1352 <td>String</td>
1353 <td></td>
1354 </tr>
1355
1356 <tr>
1357 <td><code>country</code></td>
1358 <td>String</td>
1359 <td></td>
1360 </tr>
1361
1362 <tr>
1363 <td><code>public_keywords</code></td>
1364 <td>String</td>
1365 <td>Comma-separated list of words meant to be displayed as hashtags.</td>
1366 </tr>
1367
1368 <tr>
1369 <td><code>private_keywords</code></td>
1370 <td>String</td>
1371 <td>Comma-separated list of words meant to be used for search only.</td>
1372 </tr>
1373
1374 <tr>
1375 <td><code>homepage</code></td>
1376 <td>String (URL)</td>
1377 <td></td>
1378 </tr>
1379
1380 </tbody>
1381 </table>
1382
1383 ## Size
1384
1385 <table class="table table-condensed table-striped table-bordered">
1386 <thead>
1387 <tr>
1388 <th>Attribute</th>
1389 <th>Type</th>
1390 <th align="center">Nullable</th>
1391 </tr>
1392 </thead>
1393 <tbody>
1394 <table class="table table-condensed table-striped table-bordered">
1395 <thead>
1396 <tr>
1397 <th>Attribute</th>
1398 <th>Type</th>
1399 <th align="center">Nullable</th>
1400 </tr>
1401 </thead>
1402 <tbody>
1403
1404 <tr>
1405 <td><code>w</code></td>
1406 <td>Integer</td>
1407 <td align="center">No</td>
1408 </tr>
1409
1410 <tr>
1411 <td><code>h</code></td>
1412 <td>Integer</td>
1413 <td align="center">No</td>
1414 </tr>
1415
1416 <tr>
1417 <td><code>resize</code></td>
1418 <td>Enum (fit, crop)</td>
1419 <td align="center">Yes</td>
1420 </tr>
1421
1422 </tbody>
1423 </table>
1424
1425
1426 ## Sizes
1427
1428 <table class="table table-condensed table-striped table-bordered">
1429 <thead>
1430 <tr>
1431 <th>Attribute</th>
1432 <th>Type</th>
1433 <th align="center">Nullable</th>
1434 </tr>
1435 </thead>
1436 <tbody>
1437
1438 <tr>
1439 <td><code>medium</code></td>
1440 <td><a href="help/API-Entities#Size">Size</a></td>
1441 <td align="center">No</td>
1442 </tr>
1443
1444 <tr>
1445 <td><code>large</code></td>
1446 <td><a href="help/API-Entities#Size">Size</a></td>
1447 <td align="center">Yes</td>
1448 </tr>
1449
1450 <tr>
1451 <td><code>thumb</code></td>
1452 <td><a href="help/API-Entities#Size">Size</a></td>
1453 <td align="center">Yes</td>
1454 </tr>
1455
1456 <tr>
1457 <td><code>small</code></td>
1458 <td><a href="help/API-Entities#Size">Size</a></td>
1459 <td align="center">Yes</td>
1460 </tr>
1461
1462 </tbody>
1463 </table>
1464
1465 ## Symbol
1466
1467 Unused
1468
1469 ## URL
1470
1471 <table class="table table-condensed table-striped table-bordered">
1472 <thead>
1473 <tr>
1474 <th>Attribute</th>
1475 <th>Type</th>
1476 <th align="center">Nullable</th>
1477 </tr>
1478 </thead>
1479 <tbody>
1480
1481 <tr>
1482 <td><code>url</code></td>
1483 <td>String (URL)</td>
1484 <td align="center">No</td>
1485 </tr>
1486
1487 <tr>
1488 <td><code>expanded_url</code></td>
1489 <td>String (URL)</td>
1490 <td align="center">No</td>
1491 </tr>
1492
1493 <tr>
1494 <td><code>display_url</code></td>
1495 <td>String (URL)</td>
1496 <td align="center">No</td>
1497 </tr>
1498
1499 <tr>
1500 <td><code>indices</code></td>
1501 <td>List of Integer</td>
1502 <td align="center">No</td>
1503 </tr>
1504
1505 </tbody>
1506 </table>
1507
1508 ## User Mention
1509
1510 Unused