getstream-io

url signature missing or invalid getstream

我怕爱的太早我们不能终老 提交于 2020-03-04 07:22:12
问题 var client = stream.connect('my-client-id', null, '7723'); var user1 = client.feed('flat', 'my-client-id', 'NuAW6yHVQ2sr9RQvBE-cCuewUlo'); // What is this token param (3rd one)? How is this generated? var acticity = { actor: 'QUXdERFPto', tweet: 'Hello world', verb: 'tweet', object: 1 } user1.addActivity(acticity).then(null).catch(function(e) { // Error object is // code: null // detail: "url signature missing or invalid" // duration: "10ms" // exception: "AuthenticationFailed" // status_code

getstream.io - Cannot create user in PHP backend

十年热恋 提交于 2020-01-03 18:58:13
问题 I have created a React Native app with a stream from react-native-activity-feed. I use PHP as backend to generate the user session token; $userId = "42"; $userToken = client->createUserSessionToken($userId); In my emulator I get following error: TypeError: user_id is missing in user token. This may be because I don't have any users yet on my app. When I try adding a user in my PHP backend using following code I get following error $user = $client->users()->add('42', array('name' => 'Arthur

Is there a way to retrieve the aggregated notification from GetStream webhook

余生颓废 提交于 2019-12-24 19:34:06
问题 I have connected my project to the webhook that GetStream provide. The access is established, but i only receive the single-notification and not the aggregated-notification. The idea is to connect the webhook to a push-notification service. I have had a look at their documentation: https://getstream.io/docs/ios/#realtime-webhooks, where they provide an example. But i can only access the single-notification as i see it. [ { "deleted":[], "new":[{"actor":"1","verb":"tweet","object":"1","target"

Follow yourself in a stream timeline (getstream.io)

ぃ、小莉子 提交于 2019-12-24 10:39:11
问题 I am trying to mimic setup of sites like Twitter and others where your own posts are shown in your timeline alongside those of people you follow. I was thinking of just adding a rule when a new user signs up to fire off a request to follow themselves basically. The only issue I could see is follower counts would have to be subtracted by one, but is that the best practice on how to handle this scenario or is there a better way? 回答1: That's a typical thing you'd have to do when you would not be

Users auth and profiles in getstream.io

断了今生、忘了曾经 提交于 2019-12-24 02:36:06
问题 I would like to know if I can manage user profiles and user authentication directly with getstream.io? I had a glance at the samples and I don't understand how the users get created. 回答1: It's currently not possible to manage user accounts, profiles and auth within Stream. Stream is best used in combination with an application (e.g. server-side Sails/Node.js, Python/Django, Ruby/Rails etc.) that handles these things and other functionality, application logic and services. Your application

How to remove activity from multiple feeds?

别来无恙 提交于 2019-12-22 08:55:44
问题 I'm using notification feeds where users get a notification when other users add replies into a forum thread they are part of. I'd like to know how I can remove activities from all feeds when the reply is deleted? I can't seem to find any information about that. The examples show how I can remove an activity from one users feed. But I don't necessarily know all the users that might have the activity on their notifications feed. Or is there a way to get a list of notification feeds that

How to build a news feed with aggregate and flat types?

被刻印的时光 ゝ 提交于 2019-12-18 08:26:42
问题 A simple feature on Facebook is to show posts from your friends, but also posts that your friends shared. In the case of shared posts, it's titled as "Kelly and 4 others" shared XYZ post. In addition, if several of your friends shared the post, Facebook aggregates them and only shows you the post once, it won't show up several times. Facebook seems to show flat feed and aggregate feeds all in the same timeline view. I'd like a way for a feed to show aggregate and flat feed types in a user's

getstream.io - Is there a way to prevent activities from bouncing back to a user via another feed?

依然范特西╮ 提交于 2019-12-13 19:30:48
问题 Say I have user who follows a football team. That user posts a message on that teams forum, which creates an activity on the teams feed. Since the user follows the team he also gets an activity in his own feed, about his own post. Is there any way (other than filtering on the client side) to avoid user initiated activities on other feeds bouncing back on their own feeds? The user has two feeds, his activity feed, which other users follow, and his notifications feed, which he uses to follow

Get feeds of user whom we are following

蹲街弑〆低调 提交于 2019-12-13 05:29:04
问题 How to get the list of feeds/activities for users whom we are following. I tried $user_feed_1->following(10, 20); but not getting feed data like we get in $user_feed_1->getActivities(5, 10); I am using Laravel framework. I am not getting any error but getting output array (size=4) 'created_at' =>string'2016-04-29T04:14:49.416Z' (length=24) 'feed_id' =>string'flat:1986' (length=9) 'target_id' =>string'user:6028' (length=9) 'updated_at' =>string'2016-04-29T04:14:49.416Z' (length=24) Not the

GetStream.io & React Native TypeError: You are publicly sharing your app secret

梦想与她 提交于 2019-12-13 03:45:40
问题 I am creating a getstream feed app in react native, and have been trying to debug this error for the past couple hours but with no success. Other's have posted about it on stack overflow but not with using the <StreamApp></StreapApp> component from react-native-activity-feed . Here is my code import config from '../../config'; class Feed extends Component { render(){ return( <SafeAreaView style={[{ flex: 1 }, { backgroundColor: '#FFFFFF' }]} forceInset={{ top: 'always' }} > <StreamApp apiKey=