I have created a dummy script to avoid scope issues when trying to run it from Java code. Then, I check advanced google services under resources and go to the API console to try to deal with the credentials.
I can see 'Apps Script' credentials have been already created for me. When I try to set the redirectURI to point an endpoint I am exposing and then save, I get an error message saying I have no rights to perform the action.
Is there any code example to run google scripts from java? I have tried the tutorial but it is not focusing in the authorization. I have been so far able to create the script from java code with the token I get from credentials I have created, but not to run the scripts.
Related
I have an application which connects to Google Drive API.
Now I have to add another function which requires the Google Directory API.
I granted the necessary permissions and enabled the new API in my project.
However I'm still getting this error:
"message" : "Access Not Configured. Admin Directory API has not been
used in project 594418282793 before or it is disabled. Enable it by
visiting
https://console.developers.google.com/apis/api/admin.googleapis.com/overview?project=594418282793
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry."
The problem is that the URL in the message gives me an error; apparently the project ID is invalid.
This is the error:
There was an error while loading
/apis/dashboard?project=594418282793. You are missing at least one of
the following required permissions:
Project
resourcemanager.projects.get
Check that the project ID is valid and you have permissions to access
it.
I have no idea what is the cause of this mismatch, why the project ID provided in the error message doesn't seem to exist, and where else should I enable the second API in my application.
Any ideas would be much appreciated.
I think you have miss understood how the credentials.json works.
Access Not Configured.
Means that the credentials you have loaded for this client has not been setup for the api you are trying to connect to.
When you create a project on Google developer console this is to give google information about your application as a whole and what it is designed to do. You should enable both apis in the single project.
Once that is done create your Oauth credentials as you did before this credential file will then be able to connect to both apis .
googel developer console
Left hand menu click credentials then button on the top says create credentials
Once you have created it click the arrow to download you can download the file anytime
I'm using SSRS with JAVA web application, I successfully generated the reports with passing the parameters and the report format dynamically, but I'm facing an issue with the reporting services login prompt there, I want to stop this prompt and instead adding the reporting services user credentials in the back-end using JAVA. But it did not work and I'm really confused.
What is it the right way to do so? Is there something I'm missing and/or that I need to do? Is there any other way to do this?
I've imported the web service classes into my project and tried to set the user credential using LogonUser in the ReportExecutionServiceSoap object as:
reportExecutionServiceSoap.logonUser(username,pwd,"");
But this has not worked for me.
EDIT:
Microsoft.ReportingServices.Diagnostics.Utilities.LogonFailedException: Logon attempt for user ..... failed., Microsoft.ReportingServices.Diagnostics.Utilities.LogonFailedException: Log on failed. Ensure the user name and password are correct.;
Although I'm sure that the credentials I've passed are correct and it's working fine when using the login prompt to pass the same credentials.
I'm trying to set up Google Identity Toolkit (GIT) on a test webpage on localhost. I completed all the necessary steps on Google Console and downloaded the Java sample from the tutorial, and it's working.
Now what I want to do is disable self-registration (which I couln't disable), create users on GIT, send them an email link activation and set password for first time. I took a look at the API provided, but there's no way I can figure out how to use it.
I managed to create users and delete them with com.google.identitytoolkit classes like GitkitClient and GitkitUser, as seen in the example, but I cannot get the email activation and password reset working.
If anybody can point me to some good examples on how to do that, I'll really appreciate it.
In my company we have a custom point of sale which was built in house, and I am assigned to integrate the POS with the shopify. For the mvp, we have decided to go with the simple java app, which will run from the command line. I have done the following
1) Went to www.shopify.com/app-developers and then got my private store bla.myshopify.com. 2) Then went to Apps -> private apps. Got my API key, password and shared secret. As I have mentioned, we are doing a simple java app which can run from command line. This app will read all the keys from the local file. Now should I be doing OAUTH? As they have mentioned to redirect to a web page in here https://docs.shopify.com/api/authentication/oauth. Since we have don't have a webpage, where should I redirect the user to?
And is there anything wrong I am doing? Kindly correct me if there is a better architecture
Basic Authentication works with Shopify: Whatever package you are using for your http connection should have tools to let you set the Authorization header. Look up pre-emptive authorization for your package and use the API Key:Password (from the private app) for the Base 64 encrypted credential token
I'm building a Java Application that will connect to the Facebook and get some information. To connect to the Facebook API, Facebook asks for a code called "AccessToken", which you can get when the user connects to your application. My application is running 100% perfect when I already have the AccessToken, but I'm currently getting it externally.
So, I read the Facebook docs and apparently the only way to get the AccessToken is using a Browser, even if it is a Desktop application (like my application). I certainly would not like to run an embbed browser in my application (My objective is to build the entire interface using only Swing components).
So, my question is: In my case, is there a way to me to get this AccessToken without the need of a Browser? Or I REALLY need to embbed a webbrowser in my application or make the user open a browser and get it externally like I'm doing?
Thank you!