Skip to content

Instantly share code, notes, and snippets.

@jtomchak
Last active August 9, 2023 17:18
Show Gist options
  • Save jtomchak/1c7359617abaf175f092e1cfede3545e to your computer and use it in GitHub Desktop.
Save jtomchak/1c7359617abaf175f092e1cfede3545e to your computer and use it in GitHub Desktop.
ForYou
{
"type": "personal|public",
"for_you": {
"type": "personal|public",
"friends_of_friends": 0,
"from_your_channels": 0,
"curated_by_mammoth": 0,
}
},
@jtomchak
Copy link
Author

jtomchak commented Aug 9, 2023

https://staging.moth.social/api/v3/timelines/for_you/[email protected]

@jtomchak
Copy link
Author

jtomchak commented Aug 9, 2023

depreciate the root type

@jtomchak
Copy link
Author

jtomchak commented Aug 9, 2023

0 = disabled,
other int is enable

@jtomchak
Copy link
Author

jtomchak commented Aug 9, 2023

HTTP PUT https://staging.moth.social/api/v3/timelines/for_you/[email protected]

Parameters(name: "friends_of_friends", value: 1)

HTTP PUT https://staging.moth.social/api/v3/timelines/for_you/[email protected]&friends_of_friends=1

--> RETURN DATA HTTP 200

{
"type": "personal|public",
  "for_you": {
    "type": "personal|public",
    "friends_of_friends": 1,
    "from_your_channels": 0,
    "curated_by_mammoth": 0,
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment