var request = gapi. client . plus . activities . list ( {
'userId' : profileID ,
'collection' : 'public' ,
'maxResults' : nextCount ,
'pageToken' : nextPage
} ) . execute ( createLog ) ;
- fnc = filePattern [ o ] . comment . trim ( ) ;
- fnc = fnc. replace ( / type / gi, "comment" )
- . replace ( / postId / gi, post. id )
- . replace ( / id / gi, comment. id )
- . replace ( / postactor / gi, post. actorId )
- . replace ( / actor / gi, comment. actor . id )
- . replace ( / postdate / gi, post. date )
- . replace ( / date / gi, date )
- . replace ( / sharepath / gi, fns )
- . replace ( / postfilename / gi, fn )
- . replace ( //// gi, '/');
- General concepts
- Google plus users are bees.
- Points (posts, comments, etc.) are elements of honeycombs, points of different colors.
- Types of points
- Emerald - post
- Green - comments
- Blue - plus
- Light green - repost
- etc
- Types of rays
- Green - create item
- Orange - commenting, plus, repost
- Bees are honeycomb (well, or molecule).
- In this video, below and then left, these are the user's main posts for whose profile the activity was generated.
- On the right, these are reposts made by this user to others, they have their comments and advantages.
- General concepts
- Circles - google plus users
- Lights - user activity (creating posts, comments, pluses and more)
- Users are repelled by users
- Lights are repelled by the lights
- Lights are attracted to the user who performs an action on him.
- Users are attracted to each other through a general event, that is, if users comment on the same post.
- Everything flies to the user from whose id the log was generated. But there are also clusters of users and lights in other places. These are reposts of other users made by this profile, all new events are associated with it. This can be changed in the file name generation rules.
- [ STAThread ]
- static void Main ( string [ ] args )
- {
- // Display the header and initialize the sample.
- CommandLine. EnableExceptionHandling ( ) ;
- CommandLine. DisplayGoogleSampleHeader ( "Plus user activity" ) ;
- // Create the service.
- var service = new PlusService ( ) ;
- RunSample ( service ) ;
- CommandLine. PressAnyKeyToExit ( ) ;
- }
- private static void RunSample ( PlusService service )
- {
- // Run the request.
- CommandLine. WriteAction ( "Executing List-request ..." ) ;
- var result = service. Activities . List ( "MY PROFILE ID" , Google. Apis . Plus . V1 . ActivitiesResource . Collection . Public ) . Fetch ( ) ;
- // Display the results.
- if ( result. Items ! = null )
- {
- foreach ( var item in result. Items )
- {
- CommandLine. WriteResult ( item. Id , itme. Actor . DisplayName ) ;
- }
- }
- }
- The central point in the circle (or the center of the circle) is a post.
- Highlighted points are comments, pros, reshars.
Each point has a unique name corresponding to the user who left it, so some of the points are the largest and fly from post to post - this active user.
- Lilac points - Reshar.
- Lettuce points - comments.
- Turquoise dots - pluses.
- Point between the three branches - post.
Source: https://habr.com/ru/post/136491/