/    Sign up×
Community /Pin to ProfileBookmark

php curl or API (For Web Services)

I am new to webservice creation,i have to call all the Joomla(jomsocial component) functions from my page(ie) i need to [B]get exact output of the function [/B]as a response

[LIST=1]

  • [*]

    1 All function will be executed only after user logged in.


  • [/LIST]

    Whether i can use curl or API or any other else to perform this task

    Please Reply ASAP

    to post a comment
    PHP

    3 Comments(s)

    Copy linkTweet thisAlerts:
    @NogDogJul 27.2011 — It is not clear to me what you want to do. Do you want to provide a web service that can be consumed by JomSocial, or do you want to write client code that will consume a web service provided by JomSocial?
    Copy linkTweet thisAlerts:
    @nithi_30authorAug 01.2011 — I want to write client code that will consume a web service provided by JomSocial.

    From my webservice page i need to access their functions by passing required parameters, i need to get the output.

    How can i do it?
    Copy linkTweet thisAlerts:
    @NogDogAug 01.2011 — cURL is probably one of the most common ways to do so from within a PHP script. It looks like JomSocial provides a RESTful web service API, but I cannot find any good web resource on the details. In general, for GET requests you can simply build a URL query string with the needed request, transmit it via the cURL functions, and parse the returned string for the response data. But maybe you could get a better answer on their forum?
    ×

    Success!

    Help @nithi_30 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...