Quickbooks Online without PECL Oauth - quickbooks

I have a client in an hosting environment that will not allow him to install the PECL OAUTH package which is listed as a dependency. Is it possible that there are any simple modifications that will allow me to use some other OAUTH implementation to make the Quickbooks Online sdk work for me?

Use the open source code from here:
https://github.com/consolibyte/quickbooks-php
No Pecl libraries necessary. Here's the quick-start guide:
http://www.consolibyte.com/docs/index.php/PHP_DevKit_for_QuickBooks_-_Intuit_Partner_Platform_Quick-Start

Related

Prestashop 1.7 - Unable to install module - Oauth required

I am trying to install a prestashop module, but I see this error message everytime I try to download it: "In order to install this module you need to first install/enable the Oauth libraries on your Prestashop server.". It seems that it needs the oAuth library to be installed. Does any of you know how to configure it for Prestashop to recognize it?
The link to the module: https://addons.prestashop.com/en/third-party-data-integrations-crm-erp/32699-quickbooks-connector.html
I tried downloading an oauth module: https://github.com/jcarloscid/oauthsso/blob/master but couldn't get it to work.
Most hosting companies (thankfully) have firewall's active.
You might want to ask/check if Oauth is allowed, and ask if you van whitelist the destination's IP for your hosting package.

Does the docker version of opennms have Rest API?

I am building a frontend-like for OpenNMS and chose to install OpenNMS in a docker container. I need to use the Rest API to further my project and when I try to send a request to
http://localhost:8980/opennms/rest, using the python requests library the return code is 404.
Does OpenNMS for docker not have Rest API or do I need to install it on my core system instead of docker.
P.S. This is my first time trying to do use the Rest API of an application.
imgur link : https://imgur.com/5UDPjRF
The URL you are calling is just the base URL for our rest resources. For Nodes as an example, you can test this with curl -u admin http://localhost:8980/opennms/rest/nodes. The REST API endpoints are described in the documentation here

Enable OAuth in PHP - Azure App Service

Good evening,
We are working with some developers in the creation of one of our first apps, using Microsoft Azure Cloud hosting for the platform.
We are trying to get the bitly API to work from our server however we have been informed by our devs that they are unable to utilise this, with a suspect cause being that the OAuth module isn't listed within the info.php of the Azure App service with the files uploaded.
What we are looking for is to enable the OAuth capabilities for the PHP web app, however we aren't sure how to reconfigure the environment with no root access to the base server (as a result of the Azure App service). Normally we would utilise the PECL or YUM package for OAuth and then reconfigure it for php to be able to access it, however obviously this time we can't.
Wanted OAuth Configuration:
click for image
Can anyone help us enable the OAuth for this application?
Thanks!
Azure Web Apps support custom PHP extensions in the default PHP runtime. Please try the following steps to achieve your requirement.
Download the DLL file of OAuth extension from https://pecl.php.net/package/oauth, select the nts & x86 version.
Add a ext directory to your root directory. Copy the dll file into this directory.
Create an ini file in the root directory called extensions.ini
Add configuration settings to the extensions.ini file using the same syntax you would use in a php.ini file. E.G.
extension = d:\home\site\wwwroot\ext\php_oauth.dll
Add an App Setting to your Web App on Azure protal with the key PHP_INI_SCAN_DIR and value d:\home\site\ini
Deploy your application to Azure Web app, and restart the Azure Web Apps service.
Leverage phpinfo() you can see the extension configured correct,
You can refer to https://learn.microsoft.com/en-us/azure/app-service-web/web-sites-php-configure#how-to-enable-extensions-in-the-default-php-runtime for more info.

Spring 3.1 Web services working example

Please suggest me with some useful links that have step by step spring web services sample examples implementation. Do I need to install some plugin in Spring Tool Suite.
As said by #evandongen, Spring 3.1 features REST web services. SOAP web services can be implemented with Spring-WS, which currently is in version 2.1.3. The Spring-WS manual has a tutorial which shows you step-by-step how to implement a SOAP web service.

How do I upgrade the OpenId4Java jar version in the OpenID plugin?

I have installed the OpenID plugin (v0.4.3) for my Grails(v2.0.1) app but I am having trouble authenticating with Google as the OpenID provider.
I believe the problem is that OpenId4Java v0.9.4 doesn't handle Google's response properly. I read this somewhere the other day but can't find a reference at the moment (will edit when I find it).
So I want to upgrade the version of the OpenId4Java jar that the plugin has with a later version. But I am not sure where/how to do this.
In the <home dir>/.grails/2.0.1/projects/<my project>/plugins/openid-0.4.3/lib folder the jar is java-openid-sxip-0.9.4.jar. And the one I find in the recommended download from http://code.google.com/p/openid4java/ is openid4java-0.9.6.jar.
I've never had to replace a jar supplied by a plugin before so I'm just wondering where I should put the 0.9.6 jar, and how I get my app to recognise it?
It seems that installing version 0.4.4 (released late May 2012) of the OpenID plugin does the trick. It comes with openid4java-nodeps-0.9.6.jar instead of java-openid-sxip-0.9.4.jar meaning the newer version (v0.9.6) of OpenId4Java is used.

Resources