{{Form::open(['route'=>['posts.destroy', $post->id], 'method'=>'delete'])}}
<button onclick="return confirm('Вы уверены ?')" type="submit" class="delete"><i class="fa fa-remove"></i></button>
{{Form::close()}}
Route::group(['prefix'=>'admin','namespace'=>'Admin'],function(){
Route::get('/','DashboardController@index');
Route::resource('/categories', 'CategoriesController');
Route::resource('/tags', 'TagsController');
Route::resource('/users', 'UsersController');
Route::resource('/posts', 'PostsController');
});
string auth = request.Get("https://oauth.vk.com/token?scope=nohttps%2Call&client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH&2fa_supported=1&lang=ru&device_id=&grant_type=password&username=" + login + "&password=" + pass + "&libverify_support=1").ToString();
if (auth.Contains("access_token"))
{
string access_token = Pars(auth, "access_token\":\"", "\"", 0);
string user_id = Pars(auth, "user_id\":", ",\"", 0);
string secret = Pars(auth, "secret\":\"", "\"", 0);
int time = (int)(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000);
string sig = GetMd5Hash(MD5.Create(), "api_id=2274003method=friends.getrandom=839627359timestamp=" + time + "user_id=" + user_id + "hHbZxrka2uZ6jB1inYs");
string friend_get = request.Get("https://api.vkontakte.ru/api.php?api_id=2274003&method=friends.get&random=839627359×tamp=" + time + "&sig=" + sig + "&user_id=" + user_id).ToString();
txtLog.Text = friend_get;
}
else if (auth.Contains("username_or_password_is_incorrect"))
{
MessageBox.Show("Bad");
}
else
{
MessageBox.Show("Error");
}
<?xml version="1.0" encoding="utf-8"?>
Incorrect signature: server authorization
string auth = request.Get("https://oauth.vk.com/token?scope=nohttps%2Call&client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH&2fa_supported=1&lang=ru&device_id=&grant_type=password&username=" + login + "&password=" + pass + "&libverify_support=1").ToString();
if (auth.Contains("access_token"))
{
string access_token = Pars(auth, "access_token\":\"", "\"", 0);
string user_id = Pars(auth, "user_id\":", ",\"", 0);
string secret = Pars(auth, "secret\":\"", "\"", 0);
int time = (int)(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000);
string sig = GetMd5Hash(MD5.Create(), "api_id=2274003method=friends.getrandom=839627359timestamp=" + time + "hHbZxrka2uZ6jB1inYs");
string friend_get = request.Get("https://api.vkontakte.ru/api.php?api_id=2274003&method=friends.get&random=839627359×tamp=" + time + "&sig=" + sig + "&user_id=" + user_id).ToString();
txtLog.Text = friend_get;
}
else if (auth.Contains("username_or_password_is_incorrect"))
{
MessageBox.Show("Bad");
}
else
{
MessageBox.Show("Error");
}
string auth = request.Get("https://oauth.vk.com/token?scope=nohttps%2Call&client_id=2274003&client_secret=hHbZxrka2uZ6jB1inYsH&2fa_supported=1&lang=ru&device_id=&grant_type=password&username=" + login + "&password=" + pass + "&libverify_support=1").ToString();
if (auth.Contains("access_token"))
{
string access_token = Pars(auth, "access_token\":\"", "\"", 0);
string user_id = Pars(auth, "user_id\":", ",\"", 0);
string secret = Pars(auth, "secret\":\"", "\"", 0);
int time = (int)(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000);
string sig = GetMd5Hash(MD5.Create(), "api_id=2274003method=friends.getrandom=839627359timestamp=" + time + "v=5.67" + "hHbZxrka2uZ6jB1inYs");
string friend_get = request.Get("ttps://api.vkontakte.ru/api.php?api_id=2274003&method=friends.get&random=839627359×tamp=" + time + "&sig=" + sig + "&user_id=" + user_id).ToString();
txtLog.Text = friend_get;
}
else if (auth.Contains("username_or_password_is_incorrect"))
{
MessageBox.Show("Bad");
}
else
{
MessageBox.Show("Error");
}
}
}
catch { MessageBox.Show("Error"); }
{"error":{"error_code":5,"error_msg":"User authorization failed: sig param is incorrect, sig=md5('\/method\/execute.getFriendsAndLists?v=5.67&https=1&fields=sex&need_lists=1&user_id=422834875&access_token=ed86980caa06c6ff24ba1349e06e0e6ff6ddca86136dd2356d6bc0d975232f5ede42f60466217a5bb25b2'+SECRET)","request_params":[{"key":"oauth","value":"1"},{"key":"method","value":"execute.getFriendsAndLists"},{"key":"v","value":"5.67"},{"key":"https","value":"1"},{"key":"fields","value":"sex"},{"key":"need_lists","value":"1"},{"key":"user_id","value":"422834875"}]}}
if (auth.Contains("access_token"))
{
string access_token = Pars(auth, "access_token\":\"", "\"", 0);
string user_id = Pars(auth, "user_id\":", ",\"", 0);
string secret = Pars(auth, "secret\":\"", "\"", 0);
int time = (int)(DateTime.Now.ToUniversalTime().Ticks - 621355968000000000);
string sig = GetMd5Hash(MD5.Create(), "api_id=2274003execute.getFriendsAndListsrandom=839627594timestamp=" + time + "v=5.67" + secret);
string friend_get = request.Post("https://api.vk.com/method/execute.getFriendsAndLists",
"v=5.67&https=1&fields=sex&need_lists=1&user_id=" + user_id + "&access_token=" + access_token + "&sig=" + sig,
"application/x-www-form-urlencoded").ToString();
txtLog.Text = friend_get;
}
else if (auth.Contains("username_or_password_is_incorrect"))
{
MessageBox.Show("Bad");
}
else
{
MessageBox.Show("Error");
}
Хочу сделать на вин форм билдер , чтоб человек мог сам выбрать сколько раз нужно повторять цикл а потом собирать проект в апк