Comments (15)
Hey there,
The form is useful to generate the form for the backend. Regard it as a View helper.
The rest of your list sounds like music in my ears! Would you want to give it a try?
from php-sdk.
Ok it's fine
I'll use twig template engine for this then
Could you create a branch 3.x and all new PR you merge to this branch?
Because the new major will be merge to Master like other famus repository
Symfony, laravel, sonata and so on
Please don't merge any new PR to master only to 3.x
from php-sdk.
Hey there,
The form is useful to generate the form for the backend. Regard it as a View helper.
The rest of your list sounds like music in my ears! Would you want to give it a try?
Hey @tim-kos this first MR I'll be change the structure, tests and creating few examples
After that I'll do new PRs
- using github action
- adding coverage, phpcs and phpmd
- documentation
Just this first PR will be huge but the others Will be fine to review
from php-sdk.
Nice! What about swapping the jquery sdk out for Uppy? We are slowly deprecating the former in favor of the latter
from php-sdk.
Nice! What about swapping the jquery sdk out for Uppy? We are slowly deprecating the former in favor of the latter
Hey @kvz
I didn't see this jQuery sdk but I guess make sense, but my idea is removing this jQuery example or js example for next major
Time to time I'm working in this new release 😊
from php-sdk.
Awesome, @eerison !
Indeed swapping out the jQuery SDK (EOL for a long time) for Uppy would be ✨ .
from php-sdk.
Hey @tim-kos and @kvz happy new year 🎉
I've tried to create an assembly this way
Request
POST https://api2.transloadit.com/assemblies
Content-Type: application/json
Accept: application/json
{
"signature":"my_signature",
"params":{
"auth":{
"key":"my_key",
"expires":"2021/01/21 21:51:27+00:00"
},
"template_id":"my_template_id",
"steps":{
"screenshot_en":{
"url":"https://www.google.com"
},
"screenshot_pt_BR":{
"url":"https://www.google.com"
},
"store":{
"credentials":"credentials-staging",
"url_prefix":"https://localhost",
"path":"users/87146c666b89aa4ee951d45a13f8074d/curriculum/${file.name}"
}
}
}
}
Response
{
"error": "INVALID_PARAMS_FIELD",
"message": "Bad params field provided, it contains invalid json.",
"http_code": 400
}
But I'm getting this error, what am I doing wrong 😄
from php-sdk.
it works doing the request this way
$response = $this->client->request(
self::HTTP_METHOD_POST,
$url,
[
'multipart' => [
[
'name' => 'signature',
'contents' => $signature,
],
[
'name' => 'params',
'contents' => $params, #json
]
]
]
);
from php-sdk.
How is $params
constructed? For PHP:
If you use PHP for example, please check the JSON_UNESCAPED_SLASHES option of the json_encode function.
From https://transloadit.com/docs/#example-code-for-different-languages
Also, from the first representation of the request I cannot determine it is a multipart request where all this lives in the transloadit
field, correct?
from php-sdk.
Hi @kvz you can ignore this comment above.
you can see how this body was mounted here
How is $params constructed? For PHP:
it's a json, and it's working properly 😃
from php-sdk.
Ah okay, everything resolved? good!
from php-sdk.
yeah, the integration with lib has worked, But need to be reviewed
PR: #35
please ignore the documentation at the moment I'm thinking to use material for MkDocs + github pages
from php-sdk.
Alright, asked Tim to take a look 👌
from php-sdk.
from php-sdk.
As this pull request there isn't any feedback, no make sense for me struggle with it anymore.
from php-sdk.
Related Issues (20)
- Signatures NEVER match. HOT 8
- Method for passing files to be uploaded is deprecated HOT 3
- Doesn't work for PHP 5.6.15? HOT 2
- Deprecation warning HOT 6
- Add `Transloadit-Client: php-sdk:<version>` header to each request
- Implement "waitForCompletion" parameter for the createAssembly function
- Relative path breaks implementation on missing version HOT 2
- Request async HOT 4
- Lib does not return exception HOT 8
- What do you think to split the createAssembly in two methods? HOT 2
- Update example of using jQuery SDK to using Uppy instead. HOT 4
- If using 'tmp_file' you will need to use move_uploaded_file() first HOT 4
- add uploaded files to assembly HOT 2
- Fix pipelines HOT 3
- Remove files not used HOT 3
- Coverage analisys HOT 5
- Test skipped HOT 3
- Is it still maintained? HOT 1
- Make timeouts configurable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-sdk.