Ive installed the sample directly into bluemix/devops services using the automatic install button with no changes. I click on "Analyze my Twitter Personality" and it takes me to this url
http://personality-insights-nodejs-sgarforthjazz-1321.mybluemix.net/auth/twitter?
which displays this output
{"code":500,"error":{}}
To use the "Analyze my Twitter Personality" feature you will need to setup twitter application credentials in the credentials.json file, at the root of the project.
For this, you need to create a new Twitter Application here and copy both Consumer Key (API Key) and Consumer Secret (API Secret) into the credentials.json file, into twitter.application.consumer_key and twitter.application.consumer_secret fields respectively.
You can read more about this in demo's README.md
Related
I clone the moodle mobile app from git and config my local. already I have a server and it includes moodle web and config it properly on the server. also i config site URL in my mobile app and log in to in. then I go to the dashboard then select course. it appears as below.
Course inside categories appear as this
but I want to config it as Collapsed Topics of course categories. any one can help me plz?
We have two projects -
Project 1 - Google App engine standard python 2.7.
Project 2 - Google Appp engine standard python 3.3
Project 1 application is secured using Firebase user authentication.
We have a need to access a particular function (URL) of Project 1 accessing from Project 2. The call from Project 2 will be done by the server (not user). We need this to be secure.
Can we enable just this function (URL) in Project 1 with IAP? And use the instructions here to authenticate?
It the above is not a solution, what are our options?
Yes, the link you provide exposes proper solutions. Although, I believe the best one is to use a Service Account for Project 2 that allows access to Project 1 resource (Use the proper Cloud Function role).
Include the Service Account credentials in Project 2 and use the proper library to call the service using the Service account credentials. Learn how to create a Service account credential here
I am using Xamarin cross-platform solution containing 4 projects.
Android project
iOS project
UWP Project and
Standard library.
I want CRUD operations on Cloud fire-store database.
UWP project working as expected.
But In case of Android project gives error on line in Library project
Firestore = FirestoreDb.Create("...-4c982");
stating error
System.InvalidOperationException Message=Error reading credential file from location appointments.json: Could not find file "/....json" Please check the value of the Environment Variable GOOGLE_APPLICATION_CREDENTIALS
A small cross platform project reading/writing to/From cloud firestore will be helpful to me.
As mentioned in the documentation, you need to set the GOOGLE_APPLICATION_CREDENTIALS environment variable in your development environment to point to a JSON service account key file.
You can create that JSON file by going to the API Console Credentials page and following these steps:
1- Select the Service Account that you are using on the Service Accounts Table to check it's details.
2- In the details page click on the Add Key Button and select the Create New Key option.
3- Select the JSON Format and confirm, the download of the JSON file will start automatically.
Once you point your GOOGLE_APPLICATION_CREDENTIALS environment variable to the directory of the JSON file the error will no longer appear.
I imported an old project into Firebase when I joined.
On the https://console.firebase.google.com/project/project-name/overview page, when I try to grab the code snippet to initialize my Firebase, the storage bucket shows up with empty URL.
Today, I started a new project, this time, using the Firebase console. After creating the project, the StorageBucket URL showed up in the initialization code snippet automatically.
When I check both project's storage rules, I see the URL pointing to the right places, however, the imported project gives this error under the Storage > Files tab:
It has been like this since day one I imported the project.
When I went to https://console.cloud.google.com/storage/browser to see if the new project I created would show, it did.
Are there any extra steps on my part to get the storage bucket URL to show for the imported project?
Who's this answer for?
If you imported your project into Firebase and having the above issue specifically with your Firebase Storage.
After back and forth with Firebase Support, if you're facing similar problems as mine, here's the approach you can try. I'm trying to replay the conversation and steps given by the Firebase Support
Make sure that you are the owner of the project you are accessing.
If you have multiple Google accounts signed in, Firebase Database can't
seem to connect to the server. Sign into incognito mode
Check in your API Manager if the following are enabled
a) App Engine admin API
b) Firebase Rules API
c) Google Cloud Storage
Check if you have an App Engine app is enabled https://console.developers.google.com/project/_/appengine
Go to Firebase Storage AppManager tab
https://console.cloud.google.com/storage/
a) Add the service account firebase-storage#system.gserviceaccount.com as an owner on the storage bucket: .appspot.com.
b) Additionally, you need to edit the "object default permissions" to allow for similar access.
Now, if you have all the above in place, next step is this:
Add new Server Credentials
In credentials page, ( https://console.developers.google.com/apis/credentials ),
click Create credentials, select API key
Select server key
Put name as "Server key (auto created by Google Service)"
At the time of writing this, creating the Server Key was what got it to work.
A few words:
The issue of not able to use Firebase properly when two accounts are logged in the same browser doesn't plague me anymore. Logged into two accounts, and both Firebase projects are up and running without any issue.
I fixed mine by using the command to work on it using
firebase init storage
This would create the storage after that it would add a storage.rule in which you can update to your liking in your project .
Then you run this command
firebase deploy --only storage
This would initialize the Storage
If you are still having issues check out this link https://stackoverflow.com/a/74750337 which was also provided by firebase for me to fix the error
This is how i fixed mine
I can't find my Application Secret key in the Mobile Options tab.
I went to look into the Mobile Application Security I found out that it is no more. It is replaces by Mobile Client Access. So where is it ?
If you have Mobile Client Access instead of Mobile Application Security then it sounds like you created a MobileFirst Starter Boilerplate (the newest release) rather than a Mobile Cloud Boilerplate (deprecated as of December 15th).
The new services within the MobileFirst Starter Boilerplate do not use the Application Secret for security or validation. I would recommend you take a look at that linked deprecation announcement and see what all has changed in the move to the new services and what you as a developer would need to do to migrate your preexisting code.
The new service Mobile Client Access require only appId and Route. (no app secret)
You can find more information here: https://www.ng.bluemix.net/docs/services/mobileaccess/getting-started.html
In the "next-step section" you can find some example that explains how to use the service ( how you can see the application secret is not required).