Use this link https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/graph-oauth?view=odsp-graph-online for documentation
creating a function for curl call
Install Google APIs Client Library for PHP
for more info check https://github.com/googleapis/google-api-php-client
1 |
composer require google/apiclient:"^2.0" |
Authentication
- Download this file: http://curl.haxx.se/ca/cacert.pem
- Place this file in the
C:\wamp64\bin\php\php7.1.9
folder - Open
php.ini
and find this line:
;curl.cainfo
Change it to:
curl.cainfo = "C:\wamp64\bin\php\php7.1.9\cacert.pem"
Make sure you remove the semicolon at the beginning of the line.
Save changes to php.ini
, restart WampServer, and you’re good to go!
if laravel url is working like index.php/user but not working in /user
1 2 |
// run this command sudo a2enmod rewrite |
1 2 |
// run this command * * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1 |
1 2 3 4 5 |
$(document).ready(function() { $('.carousel').mouseover(function(){ $(this).carousel('next'); }); }); |
It might be related to corruption in Angular Packages or incompatibility of packages.
Please follow the below steps to solve the issue.
- Delete node_modules folder manually.
- Install Node ( https://nodejs.org/en/download ).
- Install Yarn ( https://yarnpkg.com/en/docs/install ).
- Open command prompt , go to path angular folder and run Yarn.
- Run angular\nswag\refresh.bat.
- Run npm start from the angular folder.
Update
ASP.NET Boilerplate suggests here to use yarn because npm has some problems. It is slow and can not consistently resolve dependencies, yarn solves those problems and it is compatible to npm as well.
HTML
1 2 3 4 5 6 7 |
<div class="col-md-12 col-sm-12"> <div class="form-group"> <label>Upload Image</label> <input name="image" type="file" id="fileName" accept=".jpg,.jpeg,.png,.webp" onchange="validateFileType()"> <div class="gallery"></div> </div> </div> |
JS