Get people detail from microsoft in php - php

I want create php app for get login users contacts details form Microsoft(outlook).
For that I used below way but I can't proper result.
curl_setopt($curl,CURLOPT_URL,'https://login.live.com/oauth20_token.srf')
https://graph.microsoft.com//v1.0/me.

Try to use the latest Microsoft Auth Way
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
but not
https://login.live.com/oauth20_token.srf
More suggestion: get started from the official docs then change to your code. Do not fully write your own framework before you have already familiar with the graph product

Related

How to extract data from facebook api or using php sdk for Job applications?

I did lots of research to find the proper guideline to get a few thing done but seems like really hard. All I am asking is below:
Anyone know in php how to extract posted jobs?
How to get job applications like all the users applied for job?
Where to start my code in php?
I know all below:
business manager id
app id
app secret key from my created app.
but I don't know how to get the pageID?
I have also found this URL to get the job applications: job applpications
but don't know how to perform from the above URL.
Please give me some guideline here as I am completely new to the Facebook API. Also, please if someone can provide me some starting point of php code to begin with my 1st and 2nd question.
Also if you check below image then it's showing that you can get applications from job:
There is no publicly available Jobs API. Reading job posts via the /feed endpoint is also not supported.

Developing REST API using PHP

I am new in API. I am supposed to develop an API that allows our content provider to give information pertaining soccer whereby he is supposed to create matches,update matches etc .I would like to know how to create a REST API in php that allows a client to enter the information. So far,I have created an API but I dont know how to enable the client enter the information.
Informations:
It is the basic form that you have to create and then you must allow the user to submit the form datas that he/she has filled and you have to post the data to the route that you have created.
You must submit the data and then you have to make the submitted data to be json_encode() so that it will work for the API.
Or Else if you are not designing the form and other such things you can directly go in for the API ADD ONS that the Firefox and the chrome has . Assuming you are using the chrome or Firefox as browsers.
https://addons.mozilla.org/en-US/firefox/addon/restclient/
https://addons.mozilla.org/en-US/firefox/addon/rest-easy/
https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en
Okay, assuming that you created a REST API already, download the Advanced REST client chrome extension: https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo
I hope that answers to your question.
P.S: May I know what framework did you use to design your REST API ? Additional details can help you further.
Building REST APIs is atually a rather easy task. That's primarily what I work on at work all day. If you have to use PHP (I'm a fan of PHP, so don't take that comment the wrong way :) ), I would reccommend using a framework like Laravel.
The logic to handle the information once it's requested wouldn't change. You would just need to make your requests/responses REST compliant.
Here is a great tutorial for doing just that!
Also, since you use Yii, this tutorial is probably better. I've never used Yii, so I can't really vouch for it, though.

Odoo Webservices in PHP using XMLRPC

I am using the Odoo web services in PHP via XMLRPC.
It is working well and showing up the data, however I want to decrease my workload using the (Odoo ACL) access rights to show and hide the data for different type of the users based on the role.
Is it possible to show the data based upon the user roles? If possible please give me the snippet of the code to do this. I just want to use the XMLRPC not the RIPCORD Library because whole my code is already worked and i use the XMLRPC for this.

Replacement for if-is-app-user

Now that FBML is depricated, does anyone know the best way of returning a list of friends that are also using the same app.
Thanks
From the is-app-user documentation
Please note: We are in the process of deprecating the REST API, and have added
equivalent support to the Graph API for this method. Please use the Graph API
User object and GET /[UID]?fields=installed to check if a user is has TOSed that app.
Also, you already should have the uid of all users of your app, because you have your own state saved, so you could just use that.

Get Twitter User Details without Authentication

I have noticed some Twitter Applications manage to get a particular users Location, Name, Profile Image etc using just the twitter username?
Hows is this possible?
I ask because I have not come across any where in the Twitter docs on how you can do this. I can get a users details myself using oAuth when the user provides my app permission but thats it.
Would be grateful if this could be cleared. I hope its not the use of CURL as this is not a good idea in my eyes. If there is another way, is there a PHP implementation that I could use.
Thank you for any help.
Update
I did not know that existed! Is there a PHP wrapper or class someone has written to use that ? Sorry, I am complete noob and I relay on wrappers and simple function calls!
It's returned by the users/show call from the API.
For example:
http://twitter.com/users/show.xml?screen_name=dougw
The API wiki lists a PHP library FWIW.

Categories