Authenticate Google Account with php - authentication

Is there a possibility to log in on to Google Accountt with php? Until 26th of May I was using https://www.google.com/accounts/ClientLogin to verify account. Now this method is disabled.
What Im trying to do is to connect Google Printer Cloud to print orders in resaturant. Client makes order on website then script sends auto genereted pdf to cloud which has connected printer.

I've lost 2 days searching for solution with no success. I decided to change service and I've found https://www.printnode.com/ . Implementation their php library took me about 30 mins to work.

Related

How to use Pentaho Community API

I have a pentaho community server 8.1 already running and i would like to know if this version has a API avaliable? Im using the following code to and getting a 200 but there is no basic so i can authenticate correctly.
import requests
data = {"j_username": "admin","j_password":"password"}
r = requests.post('http://(serverip):8080/pentaho/j_spring_security_check', data = data)
Is the authentication for this api configurable?
The whole idea is that i can use the scheduler since the spoon for the community version doest has access to it BUT i tried using the enterprice client and i was able to schedule so the module is there you just cant reach it.
Thanks!
Yes, and the full API is documented here:
https://help.pentaho.com/Documentation/8.1/Developer_Center/REST_API
Note: If you want to enable username/password authentication on the URL you have to edit security.properties and reboot . (an older insecure approach, but for the purposes of development possibly simpler to get you going)
You're absolutely right - the CORE platform does have the functionality, just not the UI so you're more than welcome to use the API to use the scheduler engine.

AdWords Reports into BigQuery

I try to use an AdWords script to Export AdWords Reports into BigQuery -
I have BigQuery project with enabled BigQuery API: http://prntscr.com/g8peb5
And I use correct Project ID in the script: http://prntscr.com/g8peup
But when I try to run the script, I encounter an error:
"Access Not Configured. BigQuery API has not been used in project
333669768108 before or it is disabled. Enable it by visiting
console.developers.google
com/apis/api/bigquery.googleapis.com/overview?project=333669768108
then retry. If you enabled this API recently, wait a few minutes for
the action to propagate to our systems and retry. (line 135)"
The fact is that I do not have a project with a similar ID (333669768108) and the link provided does not work correctly.
Why can there be such a problem?
Thanks in advance
I ran into a similar problem. I couldn't find a way to let the AdWords Script using BQ API run under an existing project in the Google Developer Console. Somehow AdWords needs to create a separate project for each script using Advanced Google Services. I had a similar issue as well with Gmail API in a script tied to Google Sheets workbook.
I am not sure what you mean with the link from the log not working correctly. Do you get a message like this one when you open it?
The API "bigquery.googleapis.com" doesn't exist or you don't have permission to access it
If so, you can just click on 'Library' in the panel on the left-hand side, and activate BigQuery API from there. When you run the script next time, it should push the data to BigQuery without any problems (assuming the script is correct).

RROR – unable to acquire LMS API, content may not play properly and results may not be recorded. Please contact technical support

We are in the process of implementing Success Factors LMS, and trying to play and view SCORM compatible files exported from Adobe Captivate 8 and 9 in Success Factors LMS.
I get the message - 'ERROR – unable to acquire LMS API, content may not play properly and results may not be recorded. Please contact technical support’
I have tried SCORM versions 1.2 v3 and 2004 V2 and V4. We can view the content, however it does not track, show as complete etc.
We are also producing Scorm compliant files using Skillcast and Articulate, but we still hit the same issue, we can view the content after closing the API error window, but still does not track.
Anyone experienced this problem before? Or know of a fix?
Many thanks
Normally this issue comes up when the course is unable to get the SCORM API from the LMS...I have seen a ton of SCORM content running in Success Factors before, so I wonder if the issue is in the setup. Are you seeing any "Access Denied" type errors in the browser element inspector/developer tools? I wonder if the course just can not find/have access to the player window. If the course is launching in a new window, you may want to try launching it in the frameset. I have seen folks get around this issue by making sure the player and sco are in the same window...
If you wanted to rule out the content being the issue, you can always test your content in the SCORM Cloud's free sandbox (https://cloud.scorm.com) to make sure the course is properly asking for the API...
If you have any other questions, we would be happy to help...you can just shoot us an email at support#scorm.com.
Thank you!
Joe
The error occurs because the content is not speaking to the Learning Management System (LMS). The code that runs to initialize the session doesn't happen. There is no return "ping" from the LMS.
You will get this error when you publish in SCORM and run from your desktop, or from a web server that isn't connected to an LMS. If it occurs when you are launching from an LMS it can either mean that the SCORM API isn't configured correctly, or your content server is on a different domain (cross-domain) than your application servers.
To test, you should try launching your content in different browsers. Our system was configured in such a way that Firefox and Chrome read our content to be cross-domain issue, and threw the SCORM API error, but Internet Explorer worked just fine.
In the end, it was determined that our server configuration in tandem with our firewall and security settings read the Content server as cross-domain and we had to redeploy our content servers within the firewall.

View API data with chrome DevTools

I am working on a site that uses the PayPal API. This new site will replace the old site at my job. As of right now, I need to check what data the old site sent to the PayPal API. Is there a way to check what data is being sent to and from a different site or API? It is data that is not typed in by the user, but data that already exists in the database that is being sent to the API.
Any help or advice would be great.
Thank you!
It "depends". On Windows platform you could use:
Fiddler or;
Microsoft Message Analyzer
to inspect traffic i/o (on the client system where either tool is installed). I'm sure other platforms will have similar tools.
Chrome Dev (or any other browser) tool will help with browser based traffic.
IMHO, depending on how "old" the existing system is, it maybe worth looking at the API again to see if any newer features are worth the effort since you're updating things...and seems to me getting paid/payments systems/ops would be something high on the priority list :)
Hth...

upload heavy file from one server to another server

I have created a application and integrated api of soundcloud. I firstle i am uploading traks on my server after that to the soundcloud server through cron jobs.
It is working fine for smaller file but not for heavier file.I have posted this problem on google group they replied the following:-
Do you proxy the
download through your server? Can you check there that it is received
correctly
I am unable to understand this. can you ples let me explain this.
thanks
I think there is some confusion.
You have asked soundcloud a problem about an upload of the file to soundcloud servers, and they have replied about download of the file from soundcloud.
What they mean is when a user tries to download a file from the soundcloud server, is it going via your server or directly via soundcloud.
Proxy here means the intermediate server - so they are asking is it getting to your server correctly?
I think you need to rephrase your question for them to understand it better - and clarify you mean an upload from your server to soundcloud.