ユーザーが自分のサービスに登録できるアプリを作成しようとしています。問題は、各ユーザーを非常に 1 つのアカウントに制限できることが非常に重要であることです。電話の一意の ID と Windows のライブ ID を使用してこれを実行できることがわかりました。アプリ内でこれらを取得する方法もわかりましたが、今、私の問題はそれらを私に届ける方法です!希望のユーザー名の電話IDを私のメールアドレスに送信する方法について誰か助けてもらえますか? ありがとうございました
編集
このコードを使用して、必要な値を取得します
public static class ExtendedPropertyHelper
{
private static readonly int ANIDLength = 32;
private static readonly int ANIDOffset = 2;
public static string GetManufacturer()
{
string result = string.Empty;
object manufacturer;
if (DeviceExtendedProperties.TryGetValue("DeviceManufacturer", out manufacturer))
result = manufacturer.ToString();
return result;
}
//Note: to get a result requires ID_CAP_IDENTITY_DEVICE
// to be added to the capabilities of the WMAppManifest
// this will then warn users in marketplace
public static byte[] GetDeviceUniqueID()
{
byte[] result = null;
object uniqueId;
if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId))
result = (byte[])uniqueId;
return result;
}
// NOTE: to get a result requires ID_CAP_IDENTITY_USER
// to be added to the capabilities of the WMAppManifest
// this will then warn users in marketplace
public static string GetWindowsLiveAnonymousID()
{
string result = string.Empty;
object anid;
if (UserExtendedProperties.TryGetValue("ANID", out anid))
{
if (anid != null && anid.ToString().Length >= (ANIDLength + ANIDOffset))
{
result = anid.ToString().Substring(ANIDOffset, ANIDLength);
}
}
return result;
}
}
今、私はthesを変数に保存する必要があります(実際には機能しません)。次に、それらを抽出するphpスクリプトに送信する必要があります
これに加えて、ユーザーにメールアドレスを入力してもらい、これも POST に含めるように依頼する必要があります。