I gang

Fetch first image from rest api contect in ionic/cordova

I am connecting my app with the wordpress site and i have installed rest api plugins. Now i am able to display content from the json out put. Now i want to get the very first image from the retrieved content.

Json Response CoDE

"content":{"rendered":" hello hellohello hellohellohellohellohello **** < img src="" />

I want to extract the img src URL.

here is my ionic code

.controller('MyCtrl', function($scope, $http){

$[url removed, login to view] = [];

$[url removed, login to view] = 1;

$[url removed, login to view] = function(){

$[url removed, login to view](wordpress_url+'/wp-json/wp/v2/posts' ,{

params:{"page":$[url removed, login to view],"per_page":wordpress_per_page}

}).then(function(response){

if([url removed, login to view] == 0) {

$[url removed, login to view] = $[url removed, login to view] -1;

$[url removed, login to view] = true;

}

[url removed, login to view]([url removed, login to view], function(item){

[url removed, login to view] = new Date([url removed, login to view]).getTime();

});

[url removed, login to view]([url removed, login to view], function(item){

$[url removed, login to view](item);

});

$scope.$broadcast('[url removed, login to view]');

$[url removed, login to view] = $[url removed, login to view] +1;

});

};

})

P.S.: IT IS VERY SMALL STUFF, BUDGT IS 200 INR/- ONLY

Evner: HMLT5, Ionic Framework, jQuery / Prototype, Mobile App Development, WordPress

Se mere: upload image rest api, magento api module rest, facebook api image, writing api documentation rest, wikipedia api image, facebook api image tagging, rails google api image search, prestashop api image upload, google api image map, demo javascript ajax image zoom api image, api image sharinghosting, create api php rest, ruby api image uploading service, api image shack, api image hosting

Om arbejdsgiveren:
( 6 bedømmelser ) Navsari, India

Projekt ID: #13267401

Tildelt til:

SandyHadiya

hello sir i can do this task in hour. give me ftp details and task will done. i have 2+ year experience in PHP development. thank you sandip

₹222 INR / time
(0 bedømmelser)
0.0

2 freelancere byder i gennemsnit ₹333/time for dette job

₹444 INR / time
(3 bedømmelser)
0.9
₹277 INR / time
(0 bedømmelser)
0.0