getStream laravel integration FeedConfigException - laravel-5.5

I am trying to get getStream for laravel integrated. I have followed all the steps as mentioned in the below link.
getstream Laravel Integration tutorail
Thought the tutorial is good i am having difficultly in getting the response for feed working. When i access the feed url, below error is displayed
"{"detail":"timeline feed group does not exists","status_code":400,"code":6,"exception":"FeedConfigException","duration":"0.55ms"}"
In getStream dashboard, the log says
The request was malformed or invalid.
Any idea what the issue could be?

According to the error message returned from the APIs, it looks like you are trying to read a timeline feed (timeline:3) but that group is not defined on your application.
You can fix this by creating a new feed group called "timeline" on Stream's Dashboard. When you do that, make sure that you add it to the same application that you are using on Laravel.

Related

how to create realtime notification in django without using django channels

For every action such as-
log in
sign up
password reset
Notifications should be seen to the user with a notification bell icon (just like Facebook)
where real-time notifications are shown according to each action performed.
Also, an email should be sent to that user.
Note - (YOU CAN USE ANY DJANGO LIBRARY EXCEPT DJANGO CHANNELS)
this is the question that I want to solve. please help me.
You can use the Google Firebase Cloud Messaging service. There a lot of packages that work with this service. I recommend you to use fcm-django package for simplicity.

Streaming videos from AWS to Moodle Mobile App

I would like to know if it is possible to stream MediaTailor content on the Moodle Mobile App?
I have tested it out on our Moodle website and it works perfectly fine. However, streaming the content on the Moodle Mobile App does not work. Is there any way in which I can stream content using a MediaTailor URL?
Update:
I was able to emulate this issue in the browser and the following error was displayed on my console:
Uncaught TypeError: Cannot read property 'techOrder' of undefined
at HTMLVideoElement.<anonymous> (first.js:306)
at Function.each (jquery-3.4.1.min.js:2)
at k.fn.init.each (jquery-3.4.1.min.js:2)
at t (first.js:306)
at Object.s [as setUp] (first.js:306)
at view.php?id=41359:3335
at Object.execCb (require.min.js:5)
at b.check (require.min.js:5)
at b.enable (require.min.js:5)
at b.init (require.min.js:5)
This is a known issue that is currently not resolved.
Are you able to stream any DASH or HLS content or is it just the ads coming from MediaTailor that fail to stream? If it does work with other content, there may be an issue with that the app can't handle discontinuities between main content and ads. I would recommend looking at the device logs, if there are any, to see what the player is erroring out on. In addition, I would recommend reviewing the below article from Moodle for creating mobile-friendly courses as well as the articles for debugging your app from Android Developers:
https://docs.moodle.org/310/en/Creating_mobile-friendly_courses
https://developer.android.com/studio/debug
https://developer.android.com/studio/command-line/adb

Getting started using Microsoft Academic Graph API

I am trying to run some queries on Microsoft Academic Graph using their API. I cannot figure out what to use for the Ocp-Apim-Subscription-Key. (I have seen this question and it did not help.) When I try to run queries I get the following message (401: access denied): Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key.. This happens either using curl on the command line:
curl -v -X GET "https://westus.api.cognitive.microsoft.com\
/academic/v1.0/evaluate?\
expr=stochastic&model=latest&count=10&offset=0&attributes=Id" \
-H "Ocp-Apim-Subscription-Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
or using the API testing console.
So what am I using for the Ocp-Apim-Subscription-Key? (Not a lot of Xs!) I've tried two things. First, I've tried using the key that you can get by going to https://labs.cognitive.microsoft.com/en-us/project-academic-knowledge and clicking on the subscribe link (either Key 1 or Key 2).
Second, I've tried using a key generated by going to the cognitive services on my azure portal, and trying to create a subscription to a suitable service. However, nothing that I can see matches the Academic Search API that I want to use, so I used a generic bing search subscription.
Neither of these grants me access to the API. What am I missing?
EDIT:
After first response by #ali-heikal, I tried going to here: https://dev.labs.cognitive.microsoft.com/docs/services/56332331778daf02acc0a50b/operations/5951f78363b4fb31286b8ef4/console. A red warning box appears at top of page: You are not subscribed to this API and will get a '401 Access Denied' response. To subscribe, go to the Products page and click on the desired product containing this API.. If I go to the Products page, and go on to the Project Academic Knowledge - Preview page, I am offered the chance to subscribe. Clicking subscribe takes me to a generic MS sign in (I am signed in, choose that account), I am taken to a page which says:
We're unable to complete your request
Microsoft account is experiencing technical problems. Please try again later.
So this does not work for me. Where is it documented that I should use this endpoint? Can someone provide further instructions on how to use it?
EDIT2:
There is this answer which describes using a different endpoint: https://stackoverflow.com/a/49318405/54557. However, changing my curl request to use this does not work (with same Access denied error).
You're using the wrong endpoint, since you're using the Preview API, then you should use the Preview endpoint as well.
It should work if you follow those steps:
Regenerate a key from here (do not use an old key this time) and confirm by clicking the Yes, regenerate this key button
Open the Testing Console from here
Insert the key you just generated into the Ocp-Apim-Subscription-Key field
Insert the following into the Request body field: expr=Composite(AA.AuN=='ali heikal')&count=2&attributes=Ti,Y,CC,AA.AuN,AA.AuId
Click the Send button
Check the Entity Attributes documentation here to understand the attributes I included following the Evaluate Method documentation here
I think the problem is that you are using an old key with the wrong endpoint and attribute values.

Facebook: App must be on whitelist

I'm using Facebook Marketing API. Starting from last week I get an error message when I try to send a request from my local machine.
The exact error I'm getting on my screen is the following:
RequestException in RequestException.php line 154:
(#3) App must be on whitelist
When I send a request from production server, the app is working fine and creates a campaign.
I went through all the possible settings in the app, to see if I'm able to configure it from there, but seems like the app is configured well.
App is also public:
This app is public and available to all users
Appreciate any help or tips!
App suddenly started working without making any changes to code or configuration. Must be an Facebook issue...
I had this issue when provide 'is_autobid' property to new campaign

drupal: how to post a comment through services API?

I am currently developping a mobile application with a drupal 7 website as a backend. Using the services API with a REST server I was able to easily access the nodes, users, files and comments to see their content.
I am able via a POST request to log in the website but I cannot create a comment through the services API. Actually, there is no error and a new comment is well created in the database but it is empty and its nid is 0.
I also tried to download a valid comment, modify it with new datas, and send it but I have the same result.
I also need to add that the comments I am using or not just simple ones, they include some specific fields in their form.
Can anyone help me to solve this problem ? Has anyone ever experience something similar ?
Thank you
Check you are posting an object that is correctly structured, services isn't doing a comment_save()
Have a look at the test scripts for the structure
http://drupalcode.org/project/services.git/blob/refs/heads/7.x-3.x:/tests/functional/ServicesResourceCommentTests.test#l100