Class: Ayadn::Descriptions
Class Method Summary collapse
- .alias ⇒ Object
- .alias_create ⇒ Object
- .alias_delete ⇒ Object
- .alias_list ⇒ Object
- .authorize ⇒ Object
- .auto ⇒ Object
- .blacklist ⇒ Object
- .blacklist_add ⇒ Object
- .blacklist_list ⇒ Object
- .blacklist_remove ⇒ Object
- .block ⇒ Object
- .blocked ⇒ Object
- .channels ⇒ Object
- .checkins ⇒ Object
- .conversations ⇒ Object
- .convo ⇒ Object
- .delete ⇒ Object
- .delete_m ⇒ Object
- .download ⇒ Object
- .files ⇒ Object
- .follow ⇒ Object
- .followers ⇒ Object
- .followings ⇒ Object
- .global ⇒ Object
- .hashtag ⇒ Object
- .interactions ⇒ Object
- .mark ⇒ Object
- .mark_add ⇒ Object
- .mark_delete ⇒ Object
- .mark_list ⇒ Object
- .mark_rename ⇒ Object
- .mentions ⇒ Object
- .messages ⇒ Object
- .messages_unread ⇒ Object
- .mute ⇒ Object
- .muted ⇒ Object
- .nowplaying ⇒ Object
- .options_count ⇒ Object
- .options_extract ⇒ Object
- .options_force ⇒ Object
- .options_index ⇒ Object
- .options_new ⇒ Object
- .options_raw ⇒ Object
- .photos ⇒ Object
- .pin ⇒ Object
- .pmess ⇒ Object
- .post ⇒ Object
- .postinfo ⇒ Object
- .posts ⇒ Object
- .random_posts ⇒ Object
- .reply ⇒ Object
- .repost ⇒ Object
- .search ⇒ Object
- .send_to_channel ⇒ Object
- .set ⇒ Object
- .set_backup ⇒ Object
- .set_color ⇒ Object
- .set_counts ⇒ Object
- .set_defaults ⇒ Object
- .set_nicerank ⇒ Object
- .set_timeline ⇒ Object
- .settings ⇒ Object
- .star ⇒ Object
- .switch ⇒ Object
- .trending ⇒ Object
- .unauthorize ⇒ Object
- .unblock ⇒ Object
- .unfollow ⇒ Object
- .unified ⇒ Object
- .unmute ⇒ Object
- .unrepost ⇒ Object
- .unstar ⇒ Object
- .userinfo ⇒ Object
- .userupdate ⇒ Object
- .whatstarred ⇒ Object
- .whoreposted ⇒ Object
- .whostarred ⇒ Object
- .write ⇒ Object
Class Method Details
.alias ⇒ Object
1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 |
# File 'lib/ayadn/descriptions.rb', line 1509 def self.alias <<-USAGE Manage your channel aliases. Commands: create, delete, list, import. Usage: `ayadn alias list` `ayadn -A list` `ayadn -A create 33666 my_alias` `ayadn -A delete my_alias` (Once an alias is set, you can display the messages in this channel with `ayadn -ms my_alias`, post to it with `ayadn -C my_alias`, etc) \n\n USAGE end |
.alias_create ⇒ Object
1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 |
# File 'lib/ayadn/descriptions.rb', line 1527 def self.alias_create <<-USAGE Creates an alias for a channel. Usage: `ayadn alias create 33666 my_alias` `ayadn -A create 33666 my_alias` (Once an alias is set, you can display the messages in this channel with `ayadn -ms my_alias`, post to it with `ayadn -C my_alias`, etc) \n\n USAGE end |
.alias_delete ⇒ Object
1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 |
# File 'lib/ayadn/descriptions.rb', line 1541 def self.alias_delete <<-USAGE Deletes a previously created alias. Usage: `ayadn alias delete my_alias` `ayadn -A delete my_alias` \n\n USAGE end |
.alias_list ⇒ Object
1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 |
# File 'lib/ayadn/descriptions.rb', line 1553 def self.alias_list <<-USAGE Lists previously created aliases. Usage: `ayadn alias list` `ayadn -A list` Force compact view : `ayadn -A list -k` \n\n USAGE end |
.authorize ⇒ Object
1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 |
# File 'lib/ayadn/descriptions.rb', line 1783 def self. <<-USAGE Authorize Ayadn to access your App.net account. Usage: `ayadn authorize` `ayadn -auth` `ayadn -AU` Ayadn will give you a link to an App.net login page. After a successful login, you will be redirected to the Ayadn user token page. Copy this token and paste it into Ayadn. \n\n USAGE end |
.auto ⇒ Object
1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 |
# File 'lib/ayadn/descriptions.rb', line 1835 def self.auto <<-USAGE Auto post every line of input. `ayadn auto` In this mode, each line you type (each time you hit ENTER!) is automatically posted to ADN. Hit CTRL+C to exit this mode at any moment. \n\n USAGE end |
.blacklist ⇒ Object
1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 |
# File 'lib/ayadn/descriptions.rb', line 1647 def self.blacklist <<-USAGE Manage your blacklist. Commands: add, remove, list, import. Usage: `ayadn blacklist list` `ayadn -K list` `ayadn -K add mention @shmuck` `ayadn -K add hashtag sports` `ayadn -K add client IFTTT` `ayadn -K add client 'Spammy Unknown Client'` `ayadn -K add word poo` `ayadn -K remove mention @shmuck` `ayadn -K remove hashtag sports` `ayadn -K remove client IFTTT` `ayadn -K remove word poo` \n\n USAGE end |
.blacklist_add ⇒ Object
1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 |
# File 'lib/ayadn/descriptions.rb', line 1677 def self.blacklist_add <<-USAGE Adds a mention, hashtag, client or keyword to your blacklist. You don't have to respect the case as all data is recorded downcase. Usage: `ayadn blacklist add mention @shmuck` `ayadn -K add mention @shmuck` `ayadn -K add hashtag sports` `ayadn -K add client IFTTT` `ayadn -K add client 'Spammy Unknown Client'` `ayadn -K add word poo` \n\n USAGE end |
.blacklist_list ⇒ Object
1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 |
# File 'lib/ayadn/descriptions.rb', line 1719 def self.blacklist_list <<-USAGE Lists the content of your blacklist. Usage: `ayadn blacklist list` `ayadn -K list` Force compact view : `ayadn -K list -k` \n\n USAGE end |
.blacklist_remove ⇒ Object
1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 |
# File 'lib/ayadn/descriptions.rb', line 1699 def self.blacklist_remove <<-USAGE Removes a mention, hashtag, client or keyword from your blacklist. You don't have to respect the case as all data is recorded downcase. Usage: `ayadn blacklist remove mention @shmuck` `ayadn -K remove mention @shmuck` `ayadn -K remove hashtag sports` `ayadn -K remove client IFTTT` `ayadn -K remove word poo` \n\n USAGE end |
.block ⇒ Object
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 |
# File 'lib/ayadn/descriptions.rb', line 1141 def self.block <<-USAGE Block a user. Usage: `ayadn block @spammer` `ayadn -BL @spammer` You can block several users at once: `ayadn -BL @spammer @myex @thickhead` \n\n USAGE end |
.blocked ⇒ Object
681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 |
# File 'lib/ayadn/descriptions.rb', line 681 def self.blocked <<-USAGE List the users you blocked. Usage: `ayadn blocked` `ayadn -bkd` # ----- Sort the list by username: `ayadn -bkd -u` Sort the list by name: `ayadn -bkd -n` Sort the list by posts/day: `ayadn -bkd -d` Sort the list by total posts: `ayadn -bkd -p` Reverse the list order: `ayadn -bkd -r` `ayadn -bkd -u -r` Force compact view: `ayadn -bkd -k` Show as JSON: `ayadn -bkd -x` \n\n USAGE end |
.channels ⇒ Object
1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/ayadn/descriptions.rb', line 1157 def self.channels <<-USAGE List your active channels. Usage: `ayadn channels` `ayadn -ch` # ----- Retrieve only the specified channel(s): `ayadn -ch --id 42133 42134` Retrieve only your broadcast channel(s): `ayadn -ch --broadcasts` Retrieve only your private messages channel(s): `ayadn -ch --messages` Retrieve only your patter room channel(s): `ayadn -ch --patter` Retrieve all channel(s) except broadcasts, messages or patter: `ayadn -ch --other` Show as JSON: `ayadn -ch -x` \n\n USAGE end |
.checkins ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/ayadn/descriptions.rb', line 68 def self.checkins <<-USAGE Show the Checkins Stream. Basic usage: `ayadn checkins` `ayadn -ck` Scroll the stream: `ayadn -ck -s` # ----- Retrieves only 5 posts: `ayadn -ck -c5` Shows index instead of post numbers: `ayadn -ck -i` Shows index and retrieves 30 posts: `ayadn -ck -i -c30` Show only new posts: `ayadn -ck -n` Force compact view: `ayadn -ck -k` Force display blocked/muted/blacklisted: `ayadn -ck -f` Show as JSON: `ayadn -ck -x` \n\n USAGE end |
.conversations ⇒ Object
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/ayadn/descriptions.rb', line 252 def self.conversations <<-USAGE Show the Conversations Stream. Basic usage: `ayadn conversations` `ayadn -cq` Scroll the stream: `ayadn -cq -s` # ----- Retrieves only 5 posts: `ayadn -cq -c5` Shows index instead of post numbers: `ayadn -cq -i` Shows index and retrieves 30 posts: `ayadn -cq -i -c30` Show only new posts: `ayadn -cq -n` Force compact view: `ayadn -cq -k` Force display blocked/muted/blacklisted: `ayadn -cq -f` Show as JSON: `ayadn -cq -x` \n\n USAGE end |
.convo ⇒ Object
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 |
# File 'lib/ayadn/descriptions.rb', line 498 def self.convo <<-USAGE Show the conversation thread around post n°POST. Usage: `ayadn convo 23362788` `ayadn -co 23362788` Scroll the conversation: `ayadn -co -s 23362788` # ----- Show index instead of post numbers: `ayadn -co -i 23362788` Force compact view: `ayadn -co -i -k 23362788` Force display blocked/muted/blacklisted: `ayadn -co -f 23362788` Show as JSON: `ayadn -co -x 23362788` \n\n USAGE end |
.delete ⇒ Object
963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 |
# File 'lib/ayadn/descriptions.rb', line 963 def self.delete <<-USAGE Delete a post. Usage: `ayadn delete 23365251` `ayadn -D 23365251` You can delete several posts at once: `ayadn -D 42371250 23365251 42253824` \n\n USAGE end |
.delete_m ⇒ Object
979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 |
# File 'lib/ayadn/descriptions.rb', line 979 def self.delete_m <<-USAGE Delete a message (private message or message in a channel). Usage: `ayadn delete_m 42666 3365251` `ayadn -DM 42666 3365251` `ayadn -DM my_channel_alias 3365251` You can delete several messages at once: `ayadn -DM mychan 3365251 3365252 3365253` \n\n USAGE end |
.download ⇒ Object
1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 |
# File 'lib/ayadn/descriptions.rb', line 1569 def self.download <<-USAGE Download the file with id FILE. Usage: `ayadn download 23344556` `ayadn -df 23344556` \n\n USAGE end |
.files ⇒ Object
937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 |
# File 'lib/ayadn/descriptions.rb', line 937 def self.files <<-USAGE List the files in your ADN storage. Basic usage: `ayadn files` `ayadn -fl` # ----- Retrieves only 5 files: `ayadn -fl -c5` Retrieves all files: `ayadn -fl -a` Show as JSON: `ayadn -fl -c5 -x` \n\n USAGE end |
.follow ⇒ Object
1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 |
# File 'lib/ayadn/descriptions.rb', line 1109 def self.follow <<-USAGE Follow a user. Usage: `ayadn follow @ericd` `ayadn -FO @ericd` You can follow several users at once: `ayadn -FO @ericd @ayadn @adnapi` \n\n USAGE end |
.followers ⇒ Object
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 |
# File 'lib/ayadn/descriptions.rb', line 584 def self.followers <<-USAGE List users following @username. Usage: `ayadn followers @ericd` `ayadn -fwr ericd` ("@" is optional) You can use "me" instead of your username for your own account. # ----- Sort the list by username: `ayadn -fwr -u me` Sort the list by name: `ayadn -fwr -n me` Sort the list by posts/day: `ayadn -fwr -d me` Sort the list by total posts: `ayadn -fwr -p me` Sort the list by post date: `ayadn -fwr -t -l me` Reverse the list order: `ayadn -fwr -r me` `ayadn -fwr -u -r me` Force compact view: `ayadn -fwr -k me` Show as JSON: `ayadn -fwr -x me` \n\n USAGE end |
.followings ⇒ Object
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 |
# File 'lib/ayadn/descriptions.rb', line 532 def self.followings <<-USAGE List users @username is following. Usage: `ayadn followings @ericd` `ayadn -fwg ericd` ("@" is optional) You can use "me" instead of your username for your own account. # ----- Sort the list by username: `ayadn -fwg -u me` Sort the list by name: `ayadn -fwg -n me` Sort the list by posts/day: `ayadn -fwg -d me` Sort the list by total posts: `ayadn -fwg -p me` Sort the list by post date: `ayadn -fwg -t -l me` Reverse the list order: `ayadn -fwg -r me` `ayadn -fwg -u -r me` Force compact view: `ayadn -fwg -k me` Show as JSON: `ayadn -fwg -x me` \n\n USAGE end |
.global ⇒ Object
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/ayadn/descriptions.rb', line 114 def self.global <<-USAGE Show the Global Stream. Basic usage: `ayadn global` `ayadn -gl` Scroll the stream: `ayadn -gl -s` # ----- Retrieves only 5 posts: `ayadn -gl -c5` Shows index instead of post numbers: `ayadn -gl -i` Shows index and retrieves 30 posts: `ayadn -gl -i -c30` Show only new posts: `ayadn -gl -n` Force compact view: `ayadn -gl -k` Force display blocked/muted/blacklisted: `ayadn -gl -f` Show as JSON: `ayadn -gl -x` \n\n USAGE end |
.hashtag ⇒ Object
725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 |
# File 'lib/ayadn/descriptions.rb', line 725 def self.hashtag <<-USAGE Show recent posts containing HASHTAG. Usage: `ayadn hashtag thememonday` `ayadn -t thememonday` # ----- Extracts all links contained in the posts: `ayadn -t -e thememonday` Ignore the blocked/muted/blacklisted filters: `ayadn -t -f thememonday` Force compact view: `ayadn -t thememonday -k` Show as JSON: `ayadn -t -x thememonday` \n\n USAGE end |
.interactions ⇒ Object
432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 |
# File 'lib/ayadn/descriptions.rb', line 432 def self.interactions <<-USAGE Show your recent ADN interactions. Usage: `ayadn interactions` `ayadn -int` # ----- Force compact view: `ayadn -int -k` Show result as JSON: `ayadn -int -x` \n\n USAGE end |
.mark ⇒ Object
1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 |
# File 'lib/ayadn/descriptions.rb', line 1581 def self.mark <<-USAGE Bookmark a conversation and manage your bookmarks. Usage: `ayadn mark add 30594331` `ayadn mark add 30594331 convo_name` `ayadn mark list` `ayadn mark delete 30594331` `ayadn mark rename 'convo name' 'other name'` \n\n USAGE end |
.mark_add ⇒ Object
1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 |
# File 'lib/ayadn/descriptions.rb', line 1599 def self.mark_add <<-USAGE Add a conversation to your conversations bookmarks. Usage: `ayadn mark add 30594331` `ayadn mark add 30594331 'title'` You don't have to specify the root post of the conversation, any post within the thread will work. \n\n USAGE end |
.mark_delete ⇒ Object
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 |
# File 'lib/ayadn/descriptions.rb', line 1627 def self.mark_delete <<-USAGE Delete entry from your bookmarked conversations. Usage: `ayadn mark delete 30594331` \n\n USAGE end |
.mark_list ⇒ Object
1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 |
# File 'lib/ayadn/descriptions.rb', line 1613 def self.mark_list <<-USAGE List your bookmarked conversations. Usage: `ayadn mark list` Force compact view : `ayadn mark list -k` \n\n USAGE end |
.mark_rename ⇒ Object
1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 |
# File 'lib/ayadn/descriptions.rb', line 1637 def self.mark_rename <<-USAGE Rename a bookmarked conversation. Usage: `ayadn mark rename 30594331 'new title'` \n\n USAGE end |
.mentions ⇒ Object
298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/ayadn/descriptions.rb', line 298 def self.mentions <<-USAGE Show posts containing a mention of @username. Basic usage: `ayadn mentions @ericd` `ayadn -m ericd` ("@" is optional) You can use "me" instead of your username for your own mentions. Scroll mentions: `ayadn -m -s me` # ----- Retrieves only 5 posts: `ayadn -m -c5 me` Shows index instead of post numbers: `ayadn -m -i me` Shows index and retrieves 30 posts: `ayadn -m -i -c30 me` Force compact view: `ayadn -m -i -k me` Force display blocked/muted/blacklisted: `ayadn -m -f me` Show as JSON: `ayadn -m -x me` \n\n USAGE end |
.messages ⇒ Object
1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 |
# File 'lib/ayadn/descriptions.rb', line 1195 def self. <<-USAGE Show recent messages in a channel. Basic usage: `ayadn messages 46217` `ayadn -ms 46217` Scroll messages: `ayadn -ms -s 46217` # ----- Retrieves only 5 messages: `ayadn -ms -c5 46217` Retrieves only new messages: `ayadn -ms -n 46217` Force compact view: `ayadn -ms -n 46217 -k` Ayadn will mark this PM channel as read after running this command. You can pass an option, `-z`, to avoid this temporarily: `ayadn -ms -z 46217` Or you can set it off permanently: `ayadn set marker messages false` If you've set an alias for the channel, you can use it instead of the channel id: `ayadn -ms my_alias` Show as JSON: `ayadn -ms -x 46217` \n\n USAGE end |
.messages_unread ⇒ Object
1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 |
# File 'lib/ayadn/descriptions.rb', line 1243 def self. <<-USAGE Shows your unread private messages. Usage: `ayadn messages_unread` `ayadn -pmu` # ----- Ayadn will mark all your PM channels as read after running this command. You can pass an option, `-z`, to avoid this for the time of the command: `ayadn -pmu -z` Or you can set it off permanently: `ayadn set marker messages false` Force compact view: `ayadn -pmu -k` \n\n USAGE end |
.mute ⇒ Object
1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 |
# File 'lib/ayadn/descriptions.rb', line 1125 def self.mute <<-USAGE Mute a user. Usage: `ayadn mute @spammer` `ayadn -MU @spammer` You can mute several users at once: `ayadn -MU @spammer @myex @thickhead` \n\n USAGE end |
.muted ⇒ Object
636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/ayadn/descriptions.rb', line 636 def self.muted <<-USAGE List the users you muted. Usage: `ayadn muted` `ayadn -mtd` # ----- Sort the list by username: `ayadn -mtd -u` Sort the list by name: `ayadn -mtd -n` Sort the list by posts/day: `ayadn -mtd -d` Sort the list by total posts: `ayadn -mtd -p` Reverse the list order: `ayadn -mtd -r` `ayadn -mtd -u -r` Force compact view: `ayadn -mtd -k` Show as JSON: `ayadn -mtd -x` \n\n USAGE end |
.nowplaying ⇒ Object
1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 |
# File 'lib/ayadn/descriptions.rb', line 1735 def self. <<-USAGE Post the track you're listening to. Ayadn will insert the album cover, a link and a description. Usage with iTunes (Mac Os X only): `ayadn nowplaying` `ayadn -NP` Usage with Last.fm: `ayadn nowplaying -l` `ayadn -NP -l` Specify a custom hashtag: `ayadn -NP -h listeningto` Specify a custom text: `ayadn -NP -t "I loved this song so much when I was young."` Don't resolve the names (ignores iTunes Store): `ayadn -NP -n` \n\n USAGE end |
.options_count ⇒ Object
7 8 9 |
# File 'lib/ayadn/descriptions.rb', line 7 def self. "Specify the number of posts to retrieve" end |
.options_extract ⇒ Object
16 17 18 |
# File 'lib/ayadn/descriptions.rb', line 16 def self. "Extract links from each object" end |
.options_force ⇒ Object
19 20 21 |
# File 'lib/ayadn/descriptions.rb', line 19 def self. "Force retrieve posts if the user is muted/blocked and ignores posts index" end |
.options_index ⇒ Object
10 11 12 |
# File 'lib/ayadn/descriptions.rb', line 10 def self. "Use an ordered index instead of the posts ids" end |
.options_new ⇒ Object
4 5 6 |
# File 'lib/ayadn/descriptions.rb', line 4 def self. "Retrieve only new posts since your last visit" end |
.options_raw ⇒ Object
13 14 15 |
# File 'lib/ayadn/descriptions.rb', line 13 def self. "Outputs the App.net raw JSON response" end |
.photos ⇒ Object
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
# File 'lib/ayadn/descriptions.rb', line 206 def self.photos <<-USAGE Show the Photos Stream. Basic usage: `ayadn photos` `ayadn -ph` Scroll the stream: `ayadn -ph -s` # ----- Retrieves only 5 posts: `ayadn -ph -c5` Shows index instead of post numbers: `ayadn -ph -i` Shows index and retrieves 30 posts: `ayadn -ph -i -c30` Show only new posts: `ayadn -ph -n` Force compact view: `ayadn -ph -k` Force display blocked/muted/blacklisted: `ayadn -ph -f` Show as JSON: `ayadn -ph -x` \n\n USAGE end |
.pin ⇒ Object
1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 |
# File 'lib/ayadn/descriptions.rb', line 1271 def self.pin <<-USAGE Export a POST's link and text with tags to Pinboard. Usage: `ayadn pin 23365251 screenshot iterm` \n\n USAGE end |
.pmess ⇒ Object
1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 |
# File 'lib/ayadn/descriptions.rb', line 1337 def self.pmess <<-USAGE Send a private message to @username. Usage: `ayadn pm @ericd` # ----- Embed a picture: `ayadn pm @ericd -E ~/Pics/lolcat.jpg` Embed an online video: `ayadn pm @ericd -Y https://www.youtube.com/watch?v=Ei8CFin00PY` `ayadn pm @ericd -V http://vimeo.com/123234345` It enters the writing mode where you will type your message. Ayadn will mark your PM channel as read after running this command. You can pass an option, `-z`, to avoid this for the time of the command: `ayadn pm -z @ericd` Or you can set it off permanently: `ayadn set marker messages false` \n\n USAGE end |
.post ⇒ Object
1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 |
# File 'lib/ayadn/descriptions.rb', line 1281 def self.post <<-USAGE Simple post to App.net. Usage: `ayadn post 'Hello from Ayadn!'` `ayadn -P 'Hello from Ayadn!'` `ayadn -P Watching a movie with friends` # ----- Embed a picture: `ayadn -P "lol cat" -E ~/Pics/lolcat.jpg` You don't have to put quotes around your text, but it's better to do it. The 'write' method is recommended over this one: it's more secure and offers multi-line support. Embed an online video: `ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY` `ayadn -P wargarbl -V http://vimeo.com/123234345` \n\n USAGE end |
.postinfo ⇒ Object
915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 |
# File 'lib/ayadn/descriptions.rb', line 915 def self.postinfo <<-USAGE Show detailed informations about post n°POST. Usage: `ayadn postinfo 23365251` `ayadn -pi 23365251` # ----- Force compact view: `ayadn -pi 23365251 -k` Show as JSON: `ayadn -pi -x 23365251` \n\n USAGE end |
.posts ⇒ Object
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'lib/ayadn/descriptions.rb', line 344 def self.posts <<-USAGE Show @username's posts. Basic usage: `ayadn userposts @ericd` `ayadn -up @ericd` Scroll posts: `ayadn -up -s ericd` ("@" is optional) You can use "me" instead of your username for your own posts. # ----- Retrieves only 5 posts: `ayadn -up -c5 me` Shows index instead of post numbers: `ayadn -up -i me` Shows index and retrieves 30 posts: `ayadn -up -i -c30 me` Force compact view: `ayadn -up me -i -c30 -k` Force display blocked/muted/blacklisted: `ayadn -up -f me` Show as JSON: `ayadn -up -x me` \n\n USAGE end |
.random_posts ⇒ Object
1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 |
# File 'lib/ayadn/descriptions.rb', line 1767 def self.random_posts <<-USAGE Show random posts from App.net. Usage: `ayadn random` `ayadn -rnd` With 'wait 30 seconds' option: `ayadn -rnd -w30` \n\n USAGE end |
.reply ⇒ Object
1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 |
# File 'lib/ayadn/descriptions.rb', line 1411 def self.reply <<-USAGE Reply to post n°POST. Usage: `ayadn reply 23365251` `ayadn -R 23365251` It enters the writing mode where you will type your reply. Mentions and/or username will be detected and your text will be inserted appropriately. # ----- If you reply to a repost, Ayadn will automatically replace it by the original post, following the App.net guidelines. But you can force respond to the reposted one by passing the 'noredirect' option: `ayadn -R --noredirect 23365251` If you just viewed a stream with the -i (--index) option, you can also reply to a post by its index: `ayadn -R 3` Embed a picture in a reply: `ayadn -R 23365251 -E ~/Pics/lolcat.jpg` Embed an online video: `ayadn -R23365251 -Y https://www.youtube.com/watch?v=Ei8CFin00PY` `ayadn -R23365251 -V http://vimeo.com/123234345` \n\n USAGE end |
.repost ⇒ Object
1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 |
# File 'lib/ayadn/descriptions.rb', line 1093 def self.repost <<-USAGE Repost a post. Usage: `ayadn repost 23365251` `ayadn -O 23365251` You can repost several posts at once: `ayadn -O 23365251 42253824` \n\n USAGE end |
.search ⇒ Object
755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 |
# File 'lib/ayadn/descriptions.rb', line 755 def self.search <<-USAGE Show recents posts containing WORD(S). # Basic usage `ayadn search oneword anotherone` `ayadn -s oneword anotherone` # ----- Retrieves only 5 posts: `ayadn -s -c5 screenshot iterm` Shows index instead of post numbers: `ayadn -s -i screenshot iterm` Shows index and retrieves 30 posts: `ayadn -s -i -c30 screenshot iterm` Extracts all links contained in the posts: `ayadn -s -e screenshot iterm` Ignore the blocked/muted/blacklisted filters: `ayadn -s -f screenshot iterm` Force compact view: `ayadn -s screenshot -k` Show as JSON: `ayadn -s -x screenshot iterm` # ----- # Advanced usage ## Messages Search for WORD(S) in messages, including PMs. You have to specify a channel id (or an alias). Usage: `ayadn -s --messages 33642 ipad movies` `ayadn -s --messages my_alias ipad movies` ## Users Search for App.net users by searching WORD(S) in their bio/description. Usage: `ayadn -s --users anime` ## Channels Search for App.net channels by searching WORD(S) in their description. Usage: `ayadn -s --channels movies` ## Annotations Search for posts containing a specific App.net annotation. Usage: `ayadn -s --annotations net.app.core.crosspost` \n\n USAGE end |
.send_to_channel ⇒ Object
1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 |
# File 'lib/ayadn/descriptions.rb', line 1371 def self.send_to_channel <<-USAGE Send a message to a channel. Usage: ayadn send 46217 ayadn -C 46217 It enters the writing mode where you will type your message. # ----- If you've set an alias for the channel, you can post to it with 'ayadn -C my_alias' Embed a picture: `ayadn -C 46217 -E ~/Pics/lolcat.jpg` Embed an online video: `ayadn -C 46217 -Y https://www.youtube.com/watch?v=Ei8CFin00PY` `ayadn -C 46217 -V http://vimeo.com/123234345` It enters the writing mode where you will type your message. Ayadn will mark your PM channel as read after running this command. You can pass an option, `-z`, to avoid this for the time of the command: `ayadn -C -z 46217` Or you can set it off permanently: `ayadn set marker messages false` \n\n USAGE end |
.set ⇒ Object
1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 |
# File 'lib/ayadn/descriptions.rb', line 1447 def self.set <<-USAGE Set (configure) a parameter and save it. Example: `ayadn set color mentions blue` See the list of configurable parameters with: `ayadn -sg` \n\n USAGE end |
.set_backup ⇒ Object
1473 1474 1475 1476 1477 1478 1479 1480 |
# File 'lib/ayadn/descriptions.rb', line 1473 def self.set_backup <<-USAGE Set ITEM to be activated or not. Example: `ayadn set lists true` \n\n USAGE end |
.set_color ⇒ Object
1457 1458 1459 1460 1461 1462 1463 1464 |
# File 'lib/ayadn/descriptions.rb', line 1457 def self.set_color <<-USAGE Set ITEM to color COLOR. Example: `ayadn set color mentions blue` \n\n USAGE end |
.set_counts ⇒ Object
1481 1482 1483 1484 1485 1486 1487 1488 |
# File 'lib/ayadn/descriptions.rb', line 1481 def self.set_counts <<-USAGE Set ITEM to retrieve NUMBER of elements by default. Example: `ayadn set count unified 100` \n\n USAGE end |
.set_defaults ⇒ Object
1501 1502 1503 1504 1505 1506 1507 1508 |
# File 'lib/ayadn/descriptions.rb', line 1501 def self.set_defaults <<-USAGE Sets back the configuration to default values. `ayadn set defaults` \n\n USAGE end |
.set_nicerank ⇒ Object
1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 |
# File 'lib/ayadn/descriptions.rb', line 1489 def self.set_nicerank <<-USAGE Set NiceRank values. Examples: `ayadn set nicerank filter true` `ayadn set nicerank threshold 2.1` \n\n USAGE end |
.set_timeline ⇒ Object
1465 1466 1467 1468 1469 1470 1471 1472 |
# File 'lib/ayadn/descriptions.rb', line 1465 def self.set_timeline <<-USAGE Set ITEM to true or false. Example: `ayadn set directed true` \n\n USAGE end |
.settings ⇒ Object
837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 |
# File 'lib/ayadn/descriptions.rb', line 837 def self.settings <<-USAGE List current Ayadn settings. Usage: `ayadn settings` `ayadn -sg` # ----- Force compact view: `ayadn -sg -k` Show as JSON: `ayadn -sg -x` \n\n USAGE end |
.star ⇒ Object
1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 |
# File 'lib/ayadn/descriptions.rb', line 1077 def self.star <<-USAGE Star a post. Usage: `ayadn star 23365251` `ayadn -ST 23365251` You can star several posts at once: `ayadn -ST 23365251 42253824` \n\n USAGE end |
.switch ⇒ Object
1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 |
# File 'lib/ayadn/descriptions.rb', line 1819 def self.switch <<-USAGE Switch between already authorized App.net accounts. Usage: `ayadn switch @myotheraccount` `ayadn -@ myotheraccount` List your authorized accounts: `ayadn -@ -l` \n\n USAGE end |
.trending ⇒ Object
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/ayadn/descriptions.rb', line 160 def self.trending <<-USAGE Show the Trending Stream. Basic usage: `ayadn trending` `ayadn -tr` Scroll the stream: `ayadn -tr -s` # ----- Retrieves only 5 posts: `ayadn -tr -c5` Shows index instead of post numbers: `ayadn -tr -i` Shows index and retrieves 30 posts: `ayadn -tr -i -c30` Show only new posts: `ayadn -tr -n` Force compact view: `ayadn -tr -k` Force display blocked/muted/blacklisted: `ayadn -tr -f` Show as JSON: `ayadn -tr -x` \n\n USAGE end |
.unauthorize ⇒ Object
1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 |
# File 'lib/ayadn/descriptions.rb', line 1803 def self. <<-USAGE Unauthorize an Ayadn account. Usage: `ayadn unauthorize @ericd` `ayadn -UA @ericd` You can specify the `--delete` (`-D`) option to force delete the account folders: `ayadn -UA -D @ericd` \n\n USAGE end |
.unblock ⇒ Object
1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 |
# File 'lib/ayadn/descriptions.rb', line 1029 def self.unblock <<-USAGE Unblock a user. Usage: `ayadn unblock @notspammeractually` `ayadn -UB @notspammeractually` You can unblock several users at once: `ayadn -UB @notspammeractually @myex @thickhead` \n\n USAGE end |
.unfollow ⇒ Object
997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 |
# File 'lib/ayadn/descriptions.rb', line 997 def self.unfollow <<-USAGE Unfollow a user. Usage: `ayadn unfollow @spammer` `ayadn -UF @spammer` You can unfollow several users at once: `ayadn -UF @spammer @myex @thickhead` \n\n USAGE end |
.unified ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/ayadn/descriptions.rb', line 22 def self.unified <<-USAGE Show your App.net timeline, aka the Unified Stream. Basic usage: `ayadn timeline` `ayadn -tl` Scroll the stream: `ayadn -tl -s` # ----- Retrieves only 5 posts: `ayadn -tl -c5` Shows index instead of post numbers: `ayadn -tl -i` Shows index and retrieves 30 posts: `ayadn -tl -i -c30` Show only new posts: `ayadn -tl -n` Force compact view: `ayadn -tl -k` Force display blocked/muted/blacklisted: `ayadn -tl -f` Show as JSON: `ayadn -tl -x` \n\n USAGE end |
.unmute ⇒ Object
1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 |
# File 'lib/ayadn/descriptions.rb', line 1013 def self.unmute <<-USAGE Unmute a user. Usage: `ayadn unmute @ericd` `ayadn -UM @ericd` You can unmute several users at once: `ayadn -UM @ericd @myex @thickhead` \n\n USAGE end |
.unrepost ⇒ Object
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 |
# File 'lib/ayadn/descriptions.rb', line 1045 def self.unrepost <<-USAGE Unrepost a post. Usage: `ayadn unrepost 23365251` `ayadn -UR 23365251` You can unrepost several posts at once: `ayadn -UR 23365251 42253824` \n\n USAGE end |
.unstar ⇒ Object
1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 |
# File 'lib/ayadn/descriptions.rb', line 1061 def self.unstar <<-USAGE Unstar a post. Usage: `ayadn unstar 23365251` `ayadn -US 23365251` You can unstar several posts at once: `ayadn -US 23365251 42253824` \n\n USAGE end |
.userinfo ⇒ Object
859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 |
# File 'lib/ayadn/descriptions.rb', line 859 def self.userinfo <<-USAGE Show detailed informations about @username. Usage: `ayadn userinfo @ericd` `ayadn -ui @ericd` ("@" is optional) You can use "me" instead of your username for your own account. `ayadn -ui me` # ----- Get infos about several users: `ayadn -ui ericd adnapi` Force compact view: `ayadn -ui ericd -k` Show as JSON: `ayadn -ui -x me` \n\n USAGE end |
.userupdate ⇒ Object
891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 |
# File 'lib/ayadn/descriptions.rb', line 891 def self.userupdate <<-USAGE Update your user profile. Usage: `ayadn userupdate --bio` `ayadn -U --bio` `ayadn -U --name` `ayadn -U --birthday` `ayadn -U --twitter` `ayadn -U --blog` `ayadn -U --avatar ~/Pics/myface.jpg` `ayadn -U --cover ~/Pics/mycats.jpg` \n\n USAGE end |
.whatstarred ⇒ Object
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 |
# File 'lib/ayadn/descriptions.rb', line 390 def self.whatstarred <<-USAGE Show posts starred by @username. Basic usage: `ayadn whatstarred @ericd` `ayadn -was ericd` ("@" is optional) You can use "me" instead of your username for your own stars. # ----- Retrieves only 5 posts: `ayadn -was -c5 @ericd` Shows index instead of post numbers: `ayadn -was -i @ericd` Shows index and retrieves 30 posts: `ayadn -was -i -c30 @ericd` Force compact view: `ayadn -was -i -c30 @ericd -k` Show result as JSON: `ayadn -was -x @ericd` Extracts all links contained in the starred posts: `ayadn -was -e @ericd` \n\n USAGE end |
.whoreposted ⇒ Object
454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 |
# File 'lib/ayadn/descriptions.rb', line 454 def self.whoreposted <<-USAGE List users who reposted post n°POST. Usage: `ayadn whoreposted 22790201` `ayadn -wor 22790201` # ----- Force compact view: `ayadn -wor -k 22790201` Show result as JSON: `ayadn -wor -x 22790201` \n\n USAGE end |
.whostarred ⇒ Object
476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/ayadn/descriptions.rb', line 476 def self.whostarred <<-USAGE List users who starred post n°POST. Usage: `ayadn whostarred 22790201` `ayadn -wos 22790201` # ----- Force compact view: `ayadn -was -k 22790201` Show result as JSON: `ayadn -wos -x 22790201` \n\n USAGE end |
.write ⇒ Object
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 |
# File 'lib/ayadn/descriptions.rb', line 1311 def self.write <<-USAGE Multi-line post to App.net. Usage: `ayadn write` `ayadn -W` # ----- Embed a picture: `ayadn -W -E ~/Pics/lolcat.jpg` It enters the writing mode where you will type your post. Embed an online video: `ayadn -W -Y https://www.youtube.com/watch?v=Ei8CFin00PY` `ayadn -W -V http://vimeo.com/123234345` \n\n USAGE end |