PHP Class Socrata, soda-php

Afficher le fichier Open project: socrata/soda-php Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( $root_url = "", $app_token = "", $user_name = "", $password = "" ) Basic constructor
create_curl_handle ( $path, $params = [] ) create cURL handle, which can then be submitted via get
create_query_url ( $path, $params = [] ) create query URL based on the root URL, path, and parameters
get ( $path, $params = [] ) Convenience function for GET calls
post ( $path, $json_filter ) Convenience function for Posts
put ( $path, $json_filter ) Convenience function for Puts

Method Details

__construct() public méthode

Basic constructor
public __construct ( $root_url = "", $app_token = "", $user_name = "", $password = "" )

create_curl_handle() public méthode

create cURL handle, which can then be submitted via get
public create_curl_handle ( $path, $params = [] )

create_query_url() public méthode

create query URL based on the root URL, path, and parameters
public create_query_url ( $path, $params = [] )

get() public méthode

Convenience function for GET calls
public get ( $path, $params = [] )

post() public méthode

Convenience function for Posts
public post ( $path, $json_filter )

put() public méthode

Convenience function for Puts
public put ( $path, $json_filter )