@@ -99,6 +99,19 @@ public IStreamFeed Feed(string feedSlug, string userId)
9999 return new StreamFeed ( this , feedSlug , userId ) ;
100100 }
101101
102+ public async Task < PersonalizedGetResponse < EnrichedActivity > > GetPersonalizedFeedAsync ( GetOptions options = null )
103+ {
104+ options = options ?? GetOptions . Default ;
105+ var request = this . BuildPersonalizedFeedRequest ( ) ;
106+ options . Apply ( request ) ;
107+
108+ var response = await this . MakeRequestAsync ( request ) ;
109+ if ( response . StatusCode == HttpStatusCode . OK )
110+ return StreamJsonConverter . DeserializeObject < PersonalizedGetResponse < EnrichedActivity > > ( response . Content ) ;
111+
112+ throw StreamException . FromResponse ( response ) ;
113+ }
114+
102115 public async Task < ResponseBase > ActivityPartialUpdateAsync ( string id = null , ForeignIdTime foreignIdTime = null , Dictionary < string , object > set = null , IEnumerable < string > unset = null )
103116 {
104117 if ( id == null && foreignIdTime == null )
@@ -175,6 +188,9 @@ internal RestRequest BuildFeedRequest(StreamFeed feed, string path, HttpMethod m
175188 internal RestRequest BuildEnrichedFeedRequest ( StreamFeed feed , string path , HttpMethod method )
176189 => BuildRestRequest ( BaseUrlPath + feed . EnrichedPath + path , method ) ;
177190
191+ internal RestRequest BuildPersonalizedFeedRequest ( )
192+ => BuildRestRequest ( BaseUrlPath + "enrich/personalization/feed/" , HttpMethod . Get ) ;
193+
178194 internal RestRequest BuildActivitiesRequest ( )
179195 => BuildRestRequest ( BaseUrlPath + ActivitiesUrlPath , HttpMethod . Post ) ;
180196
0 commit comments