I'm trying to figure out if there's a URL I can use to point to a Microsoft Live user profile,
For example, facebook allows https://www.facebook.com/app_scoped_user_id/{ProviderKey value}
What would it be for Microsoft?
https://account.microsoft.com/profile/{ProviderKey value} ??
These two seem to work today, but there is no guarantee they will continue to do so:
http://cid-XXXXXXXXXXXXXXXX.profile.live.com/
https://profile.live.com/cid-XXXXXXXXXXXXXXXX/
XXXXXXXXXXXXXXXX is the user's 16-char alphanumeric ID.
Related
In the following URL, that unsubscribes a user from a list:
http://xxxxx.us2.list-manage.com/unsubscribe?
u=87f537bccxx35e53a1890e0d9&
id=40dcxx6cd6&
e=c4aaxx1dd6&
c=9a6xx11963
What does each parameter do?
Today I had to learn what each nondescript parameter means so that I could generate URLs for each email I send through Mandrill. It wasn't that easy to discover their meaning, but here are the one's I've come up with and how I found out what they are.
http://xxxxx.us2.list-manage.com/unsubscribe?
u=87f537bccxx35e53a1890e0d9&
id=40dcxx6cd6&
e=c4aaxx1dd6&
c=9a6xx11963
URL format:
Protocol can be http or https.
Your username comes next
In the example, us2 is the MailChimp datacenter where your account resides. That's different for each account. (https://apidocs.mailchimp.com/api/2.0/) It's good practice to specify a DC even though the documentation says that it isn't required. Specifying it will cut down on unnecessary latency.
list-manage[n].com can work with or without the number at the end of the domain, or it can have a 1 or a 2. Changing that doesn't appear to matter, but I think it has something to do with their load balancing.
/unsubscribe can also be /subscribe or /profile (The latter appears to be dependent on the "e" parameter. (See below) When you don't specify it, it states, "List member profiles cannot be updated from test campaigns or archive pages" and if you specify an invalid value, you get an error page.
u Is a unique identifier for your account. Every list on your account uses it. (See http://kb.mailchimp.com/lists/signup-forms/find-the-unsubscribe-link-for-your-list for how you can view the various URLs for your account.)
id is your list ID
e is the euid as documented on https://apidocs.mailchimp.com/api/2.0/lists/subscribe.php
c I haven't seen this one yet, but my guess is that it's the campaign ID.
Also, when you wish to prefill subscribe and unsubscribe forms, you can use the following GET params.
EMAIL Allows you to enter the subscriber's email
MERGE1 Allows you to enter the subscriber's first name
MERGE2 Allows you to enter the subscriber's last name
I am trying to tag a photo using /{photo-id}/tags. These are the parameters I am sending:
{
tags = "[{'tag_uid': 'FRIENDS_ID', 'x':1, 'y':1}]";
}
This works fine if i use my App-Scoped ID, but it doesn't work with my regular ID.
This is the error that i am receiving ("(#100) The global X id is not allowed for this call"):
So, it does work with my App-Scoped ID, retrieved using /me, but it doesn't work with any other regular ID, neither mine or of my friends.
Do any of you have ideas of what's causing this?
As I already commented, you can only use App Scoped IDs in Apps, and those are only unique in your own App. You can only match them with another App you own, by using the Business Mapping API.
For tagging, you should use taggable_friends: https://developers.facebook.com/docs/graph-api/reference/v2.1/user/taggable_friends
I am authenticating with google to try and get youtube analytics my problem is that i don't know how to filled you the parameters when quering youtube
here i am making a new service: and then try to query it
I am not sure what to put in the "ids" parameter or where to find it?
What do I put there?
_analyticService = new YoutubeAnalyticsService(_authenticator = CreateAuthenticator());
...
_analyticService.Reports.Query("ids", "2013-01-01", "2013-02-02", "views").Fetch();
The ids parameter is the an expression with the id of your channel. If you go to http://www.youtube.com/analytics and click on the title with your own channel name, you get a link like http://www.youtube.com/channel/UCYHMS8hN8s49F93iJuEgG6w The last part is the id of your channel. You have to use this as the ids parameter in an expression like "channel==UCYHMS8hN8s49F93iJuEgG6w". This is to query in the context of your own channel. This is needed as you might have access to several channels.
I can query views for one of my videos by: https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3DUCYHMS8hN8s49F93iJuEgG6w&start-date=2013-01-01&end-date=2013-02-02&metrics=views&dimensions=day&filters=video%3D%3D_iwmv6644dA&sort=day&key={YOUR_API_KEY}
Try to use the API explorer at the bottom of this page, there are some text explaining the different parameters there as well. https://developers.google.com/youtube/analytics/v1/
Hope it goes well!
Why doesn't the related account show up from this URL?
http://twitter.com/intent/tweet?text=HeyNow&related=HowardStern&hashtags=bababooey
The result is this:
HeyNow #bababooey
But I expect it to be:
HeyNow #HowardStern #bababooey
Instead of the variable related you have to use the variable via. Try this:
https://twitter.com/intent/tweet?text=HeyNow&via=HowardStern&hashtags=bababooey
More information can you find in the documentation of the twitter web intents. From the Documentation:
Variable via:
A screen name to associate with the Tweet. The provided screen name will be appended to the end of the tweet with the text: "via #username" "Via" will be translated to the proper locality of the posting user, if supported. Potentially drives new followers to the target account.
Variable related:
Suggest accounts related to the your content or intention by comma-separating a list of screen names. After Tweeting, the user will be encouraged to follow these accounts.
Greetings.
It seems a little odd to my, but although everybody knows about the new google search urls (see Google using # instead of search? in URL. Why?) no one has a problem with the HTTP_REFERER.
I'm using the referrer to parse the google string for the searchquery (&q= ) but as this is all in a hash-tag it wont be sent to the server and all i get is "http://www.google.de/".
So do you know a way of getting the query the user searched for, befor landing on my site?
Due to late-2011 Google security changes, this is no longer possible when the search was performed by a signed-in Google user. See:
http://googleblog.blogspot.com/2011/10/making-search-more-secure.html
http://analytics.blogspot.com/2011/10/making-search-more-secure-accessing.html
Since there are multiple q's in the query string you have to match the "q" parameter globally and take the last one:
/[?|&|#]q=([^&|^#]+)/ig
Get rid of "site:" searches (there are others, but I haven't done them)
/[\+|?|&]?site:([^&|^#])+/g, '');
Then parse the results.
/[\w^'\(\)\{\}]+|"[^"]+"/g
This has been working well for me.