Live Messenger Connect email contacts export - php

Today at work I was asked to investigate a problem with contacts export from Hotmail.
It was working last month when i wrote the library. For my surprise it indeed was not working. I investigated a bit and i noticed that Microsoft has done some updates to their API. The scopes were changed ... and the permissions that comes with the scopes. Here is the line that bothered me
WL_Contacts.View -
View information about a user and the user's friends, with the exception of email addresses.
They stripped the priviledge of obtaining contacts email addresses :(
What i have to do in order to get the e-mails back so i can use my exporter again ?
Do you have problems with your contacts importers ? If not, what are you using ? Which scopes ? Are you doing separate requests for each user ?

First of all, you can find tons of information about the new Windows Live Connect API here.
Here you can find version 5 of the API documentation.
If you want to sign up and create a Application you can do that here.
I hope this is enough to get you started (unless you've already found the provided links).

Related

Real Time Database on Android with Google Maps

we have a android project that needs the following objectives:
*we also have a web application for this app that needs to communicate with the same database as the android application
what I have done so far:
a view of a map with a pinpoint on my current Location
mysql db containing information (including latitude and longtitude position)
registration and login
Real Time Database Objectives:
state that people are online or offline(updating a database).
Google Map Objectives:
When I press a button, the map will show other users who are online within a given radius so basically I need to view online people who are near me
Send a message to them [2 ways]
2.1 I send them a message by clicking their icon
2.2 I send everyone[online people within the radius] the message
Questions:
I am currently using php mysql for login/register. Can I use this for a real time database or is there any other way?
is Firebase somehow similar to a hosting site?
if there are other needed information needed, pls inform me, I may not have included information that could help with my questions :)
ill update my question too if I have more questions.
thank you.
I think for your requirements its is more appropriate to use Firebase as it fulfills all your expectations and provides additional features.

how to send push notifications to multiple users via php

I am following this tutorial from androidhive. http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/
Everything is working But The tutorial only shows how to send a push to ONE device at a time. I would like to send a push notification to all devices at once using the same method. I believe the way to do this is by editing the send_message.php But i'm still trying to understand how his method works.
I have tried commenting and emailing the person who wrote the article but have not gotten a response. I just need someone to point me in the right direction.
Any hints, guildance, answers, comments are much appreciated.
Now that you have successfully implemented what that tutorial teaches, the basis idea now for sending to multiple users will be something like this:
To send push notification to multiple users, you need to create an application server in PHP.Your application server will receive the registration id from the android application and will store it in a database (may be mysql).
Now when you want to send the message to the application then you write a message and fetch all the registration ids from the database which was stored earlier.
You can follow this useful tutorial to achieve exactly what you want.
The tutorial which you have mentioned was made using GCMRegistrar which is deprecated now.Instead you need to use GoogleCloudMessaging API.The link which i provided uses the new way.Hope this helps you to implement what you want.

Fusion Tables insert row with PHP basic example

Is there is an updated PHP client library for Fusion Tables? or maybe a very concrete copy+paste insert rows example?
I I have visited https://code.google.com/p/google-api-php-client/ and downloaded their latest release file, but while having examples for lots of other google apis, I can't find any mention of fusion tables examples.
Additionally I have been trying to get https://github.com/marciuz/fusion-table-php-api-and-shell fantastic project to work, but keep receiving "invalid credentials" errors when using my fusion tables enabled server api key with his shell or with the php examples he uses. This is even for basic SHOW TABLES commands.
Is there a scope issue here I am missing?
Is there a very simple php example I can use to just copy and paste my credentials (clientID, client secret, redirect uri, api key) into and get right to inserting rows into my Fusion Tables? Maybe something like Invalid Credentials Error when passing Oauth 2.0 Access Token to Fusion Tables API in PHP, only hopefully it includes how to create the access token, and helps to insert rows instead of modifying styling?
I am trying to not reinvent the wheel on this one, and have been looking high and low for a simple working example to insert rows, that is not over my inexperienced head. Thank you, this has been literally driving me crazy.
Here is what worked for me:
"Ok so I finally got this to work and I thought Id share this with everyone In case you get stuck like I did. One step that seems to be missing from all usage examples I've seen is the service account email address needs to be added via Google Docs.
Select the document (FT) in Google Docs Click "Share"
Select "Add People" Enter your service account email address, e.g. myservice...#developer.gserviceaccount.com Ensure "Can Edit" is selected. Un-check "notify people via email" Click "Share and Save"
This was a complete guess on my part but seems to have fixed my problem. I can finally insert into my FT via my service account. Hope this helps."
For anyone else looking out there, I found this code and fix very useful for finally getting a solution with the google-api-php-client. https://groups.google.com/forum/#!msg/google-api-php-client/9d2lQAppTvg/vh8CRhWJb_YJ

Messenger Connect OAuth Wrap api to get user emails

I want to write a php script using which i can import the address book of a user from hotmail/windows live. I am using Messenger Connect OAuth Wrap api to do that. After getting the access token, i retrieved user's contacts using http://apis.live.net/V4.1/cid-'.$uid.'/Contacts/AllContacts .. though it returns email hashes instead of email addresses. I have looked all over the documentation.. it says that using the above call it will return email hashes instead of addresses. And there is no other method mentioned there to get actual email address. Can someone please guide me in this regard?
I know its an old post but i got the solution of your problem .
I have faced same situation in the my project too.
The solution is extend the scope of your retrieving data.
https://login.live.com/oauth20_authorize.srf?client_id={APPID}&`scope=wl.signin%20wl.basic%20wl.emails%20wl.contacts_emails&response_type=code&redirect_uri=http://{REDIRECT_URI}`
Then you will get actual email.
Hope this helps someone else. :)

trying to find a web service

i am trying to find a web service that allows a user to send a company name (or better still will return a list of all company names, thus allowing the user to select one) and then get the share price, this will then feed in to another api - yahoo currency converter to work out the price of the share
the issue i am having is that i cannot find a web service to get share info, google registration for theres does not seem to be working and as such i dont no what to do
i am to be coding this in php
if anyone could point me to a good web service i would appreciate it
thanks
edit : i did find this but am unsure if it is appropriate http://www.xignite.com/xGlobalQuotes.asmx?WSDL
How about:
http://www.sharepricewebservice.co.uk/
They get their data from Yahoo Finance, so I'm sure Yahoo would have an API somewhere. This page may help: http://developer.yahoo.com/finance/

Categories