iuredcap / phpcap Goto Github PK
View Code? Open in Web Editor NEWPHP API for REDCap.
License: BSD 3-Clause "New" or "Revised" License
PHP API for REDCap.
License: BSD 3-Clause "New" or "Revised" License
Dear Developers,
Thank you for putting effort into developing phpcap
library.
I was wondering what wold be the best way to update specific field in specific record?
Is there ant straightforward way to achieve this?
For example:
# Print the first and last names for all records
$records = $project->exportRecords();
foreach ($records as $record) {
print $record['first_name']." ".$record['last_name']."\n";
// Something maybe in such way
$project->updateRecord($record, "field_id", "new_value");
}
Thanks!
Using PHPCap on PHP 8 generates a deprecation warning because $apiUrl is not defined as a class member in the RedCapProject class.
"PHP Deprecated: Creation of dynamic property IU\PHPCap\RedCapProject::$apiUrl is deprecated"
Hi, I am not able to find information on what versions of REDCap this API is compatible with. I'm new to REDCap so I'm not sure how much their API varies version to version. thanks!
I glanced through the code but do not think it supports a method to pull the original uploaded file information which is hidden at the end of the original REDCap docs:
How to obtain the filename of the file:
The MIME type of the file, along with the name of the file and its extension, can be found in the header of the returned response. Thus in order to determine these attributes of the file being exported, you will need to parse the response header. Example:content-type = application/vnd.openxmlformats-officedocument.wordprocessingml.document; name='FILE_NAME.docx'
Would be great to have an option to obtain that information from the file details during export, maybe exportFileObject which would return an object like:
{
"content-type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"name": "FILE_NAME.docx',
"source": "...."
}
Or, I could be missing it if is already exists... Thx.
Hi,
In the method specification $filterLogic is marked as an array type parameter. Could it be that this should be string?
Line 1029 in e557781
In exportRecords I see that the method calls processFilterLogicArgument.
Line 1114 in e557781
This on it's turn checks for the parameter to be of type "string".
Lines 2345 to 2358 in e557781
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.