activitypub icon indicating copy to clipboard operation
activitypub copied to clipboard

Examples

Open IntinteDAO opened this issue 5 years ago • 2 comments

Hi. I'm not an expert in using my brain :P I've tried from the documentation to understand how the code works (+ ActivityPub from online texts), but I don't know how to use these projects realistically, and I wouldn't want to create my own protocol. Can you write different simple examples of different functions?

For example:

  • Creating a user for ActivityPub (what data is needed) [of course can be given from the code].
  • Creating an entry based on the data
  • Retrieving an entry from another instance
  • Retrieving user data

And so on.

If possible, of course.

IntinteDAO avatar Jan 16 '21 22:01 IntinteDAO

Hi, good questions. Based on these and some other previous ones, I think documentation should be rewritten keeping these in minds. I keep this issue opened and I'll try to write something more understandable when I have some more time. Thank you for your feedback :)

landrok avatar Jan 31 '21 17:01 landrok

In general, I've been doing a little bit of studying the ActivityPub documentation. I don't want to offend or anything, but I don't quite understand how ActivityPHP (server) works as a real server instead of some kind of data interpreter.

Additionally, I think a full tutorial on how to use ActivityPHP would be useful. I have my webfinger here:

https://101010.pl/.well-known/webfinger?resource=acct:[email protected]

I wanted to generate one in ActivityPHP using Type::create('person'), but the returned JSON is completely different than expected.

It would be good to simulate (as part of the documentation) creating your own service from scratch. About what data needs to be collected from the user (some recommend creating a private and public key, but some different documentation doesn't say anything about it).

IntinteDAO avatar Feb 02 '21 18:02 IntinteDAO