I'm trying to get the information from the table in this website "https://www.morningstar.com/stocks/xnas/fb/financials" -> "Details View".
I tried to monitor the network in developer tools.
Then, I tried to open the following link from python:
content = requests.get("https://api-global.morningstar.com/sal-service/v1/stock/newfinancials/0P0000A66L/incomeStatement/detail").content
but I get "You have not provided any credentials, please contact the API owner for the API you are trying to use."
How do I provided headers or credentials so that I can get the info from python?
Related
I am creating an app where Admin will login form his normally account and he/she can send and receive message to any skype user which is already connected to his/her skype.
for ex.
I will send an link to user to join me on skype. It can be through any way like whatsapp, fb or any other platform. Once user will join me I can send/receiver her/his message in my admin web portal which I have created.
Can any help me about it. I am using skype for buisness online and using ucwa but still stuck on authentication part of Azure AD.
If anyone has created this type of functionality plz let me know I want a demo or a docs which I can follow bcz Microsoft Docs sucks. It really sucks.
https://learn.microsoft.com/en-us/skype-sdk/ucwa/authenticationusingazuread
I passed all the steps for authentication but stuck on last step where I have to send resend auto discovery. Through this I will get the my app's end point and I will call the api using that end point.
HTTP/1.1 200 OK
{
"_links":{
"self":{"href":"https://webdirX.online.lync.com/Autodiscover/AutodiscoverService.svc/root/user"},
"applications":{"href":"https://webpoolXY.infra.lync.com/ucwa/oauth/v1/applications"}
}
}
I am following these steps but still unable to follow properly. If anyone has done it already please let me know.
I have an issue with connecting GA to Data Studio. Everything seems to work fine but there's some kind of problem that I just don't know how to solve. Maybe somebody have already had something similar before.
Although my account is authorized and I can choose everything - Connectors, Account, Property and View and even see the fields - when I add it to report, I get Error 400.
400. That’s an error.
Error: admin_policy_enforced
Access to your account data is restricted by policies within your organization. Please contact administrator for more information.
Request Details
client_id=myid-myanotherid.apps.googleusercontent.com
scope=https://www.googleapis.com/auth/drive
access_type=offline
response_type=code token
immediate=false
pageId=none
user_id=myid#myemail.com
include_granted_scopes=true
proxy=oauth2relay2050978162
redirect_uri=postmessage
origin=https://datastudio.google.com
gsiwebsdk=1
state=781464001|0.792356641
jsh=m;/_/scs/apps-static/_/js/k=oz.gapi.en.6hIrKdeK3RQ.O/m=__features__/am=AQ/rt=j/d=1/rs=AGLTcCNV6CBDIuxs3srAO9rORg8A8mF6Kg
hd=sotrender.com
That’s all we know.
It seems to bit a problem with Google Drive. But when I create a new report in Data Studio, it creates a file in my Drive so I don't really know why is that happening. GA works fell because I can see all the accounts, views, fields, etc. when creating a report. After I click 'Create a new data source', choose the data source and click 'Add to report' - the message above appears and I can't really do anything else.
Cheers.
Does your organization use G Suite? If so there's an administrator inside your company responsible for G Suite settings. He has restricted you or your whole organization of either using Analytics, using Data Studio or linking both together. You need to get in contact with your company admin to help you get the correct access to perform this change.
I have been given access to a Google Analytics account and would like to use its data through R. In the demo here, you can see the line token <- Auth(client.id,client.secret). How would I go about finding these values? I'm pretty new to both R and Google Analytics so it's possible that this is very simple, but I've been Googling for a while now and haven't been able to find an answer for my scenario (they all seem to involve creating a new project rather than using it for an existing one).
Here are the steps for getting both the client ID and secret outlined in the RGoogleAnalytics R package notes:
Go to https://console.developers.google.com
Create a New Project and enable the Google Analytics API
On the Credentials screen, create a new Client ID for Application Type > "Installed Application".
Copy the Client ID and Client Secret to your R Script as shown in the Examples section below
That may be a little confusing for a first time user (like me), so I'll just outline what I did.
1) Go to https://console.developers.google.com
2) In the dashboard tab on the left, hit "Enable API"
3) Look for the section titled "other APIs" and click "Analytics API"
4) This will guide you to create a new project for your R application Auth. You will need to be signed into your Google account that is tied to Google analytics.
5) Enable the API by clicking Enable API in blue next to the Analytics API name in the Dashboard tab.
6) Once your Google Analytics API is enabled, click "create credentials" labeled in blue.
7) In the drop down, click "OAuth client ID"
8) For application type, choose "other" and name your client whatever you want.
9) Then your client ID and secret should pop up. Copy these into your R code token <- Auth(client.id,client.secret) but make sure to have the client ID and secret in quotes.
It is not simple it is OAuth. Create a project in the Google developer Console. The Hello Analytics Java example is comparable.
I'm trying to pull data from a google analytics and put it into a google doc spreadsheet. The main issues seems to be I can't enter my GA Key. All the tutorials have said to enter it in a text box that should be at the end of the resources -> use Google API form. But I see no textbox there, only a message that I have to enable the APIs in the API console to use them.
I've confirmed that I do have Google Analytics enabled in the API console.
The error messages I get are either User does not have sufficient permissions for this profile. or Analytics not defined if I try to type my API key in the text box that says 'Analytics' (which leads me to believe that's defining the variable image).
Since the script is running as "you" you do not need to enter the GA id - it will use the permissions for the account that you were logged in with while creating and authorising that script. That account needs admin permissions for the Google Analytics account you intend to query.
The box that you thought is for the API key holds the name for the analytics object in the script. If you change that you'd need to change all instances of "Analytics" in the script to the name you entered.
For example there is a line in the script that goes:
var accounts = Analytics.Management.Accounts.list();
This will list all accounts connected to the user who authorised that script. You see that the first part is "Analytics" (the global Analytics object in the script), if you enter something in the resources->Google APIs tab you'd need to change that as well - that's why you get an error message "Analytics is not defined" when you change that value.
Hard to tell about your actual problem, probably you are just missing admin permissions in analytics.
I'm developing a web application in php that uses CURL calls to Facebook Open Graph with an authorization token.
I'm implementing calls to follow action and it runs fine with the test users profiles, but it provokes an error message when it uses Open Graph Test User as a profile.
The message is the following:
{"error":{"message":"(#100) Could not resolve object at URL 100004155724366.","type":"OAuthException","code":100}}
This happened using both the Open Graph Test User as the follower and as the followed.
I find information about this bug here, but it doesn't solve the problem.
I receive reject messages from Facebook when I send it to Review because the Open Graph Test User fails, despite I let them know about this issue.
Is there a way to execute this follow action via CURL, using Open Graph Test User without errors?
I very much appreciate your help. This thing is getting me nuts.
I faced the same issue as you did and filed a bug with Facebook: https://developers.facebook.com/bugs/1509327415958565
Facebook was able to reproduce this issue and are mentioning it appears to be a bug and assigned this task to the appropriate team.
Edit:
It turns out this behavior is by design when a test user is following a real user. FB recommends for testing to use 2 test users and let one test user follow the other test user.