SHARE
TWEET
Untitled
a guest
Dec 10th, 2014
159
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- var buildProfileApp = angular.module('buildProfileApp', []);
- buildProfileApp.controller('validateChannelCtrl', function($scope, $http){
- var testChannelUrl = 'https://www.youtube.com/user/CrimsonKombat';
- $http({
- method: 'POST',
- url: '/ajax/validate-social-channel',
- headers: {'Content-Type': 'application/x-www-form-urlencoded'},
- transformRequest: function(obj) {
- var str = [];
- for(var p in obj)
- str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
- return str.join("&");
- },
- data: {url:testChannelUrl,social_type:2}
- }).success(function(data){
- //alert( data.channel_id );
- $scope.channel_id = data.channel_id;
- });
- $scope.test = 'Blah';
- });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

